body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 30px;
    padding-left: 10px;
    padding-right: 10px;
    transition: transform 0.3s ease;
    z-index: 99;
}

.sidebar h2 {
    text-align: center;
}

.sidebar button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #34495e;
    color: white;
    border: none;
    cursor: pointer;
}

.sidebar button:hover {
    background-color: #1abc9c;
}

.main-content {
    margin-left: 330px;
    flex-grow: 1;
    padding: 20px;
}

.sidebar select {
    padding: 5px;
    font-size: 16px;
}

.sidebar input {
    margin: 5px;
    padding: 5px;
    width: 60px;
    text-align: center;
}

.chart-container {
    height: 60vh;
}

canvas {
    max-width: 100%;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        padding-top: 50px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 40px;
    }

    .toggle-btn {
        display: block;
        font-size: x-large;
    }

    .chart-container {
        height: 50vh;
    }
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-group label {
    margin-right: 10px;
    width: 150px;
}

.form-group input {
    flex-grow: 1;
}

.tabs {
    flex-grow: 1;
    flex-direction: column;
    margin: 0 auto;
}

input[type="radio"] {
    display: none;
}

.tab-titles {
    display: flex;
    justify-content: space-around;
    background-color: #f0f0f0;
    border-radius: 5px 5px 0 0;
}

.tab-titles label {
    padding: 10px;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
    background-color: #e0e0e0;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s;
}

.tab-titles label:hover {
    background-color: #d0d0d0;
}

.tab-titles input:checked + label {
    background-color: #fff;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    display: flex;
    flex-direction: column;
}

.content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}

input#sim_graph_tab:checked ~ .tab-content #graph_content,
input#sim_data_tab:checked ~ .tab-content #data_content,
input#sim_methodology_tab:checked ~ .tab-content #methodology_content {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.table-scroll {
    width: 100%;
}

.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e51c0c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.flash-message.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        padding-top: 50px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 40px;
    }

    .toggle-btn {
        display: block;
        font-size: x-large;
    }

    .chart-container {
        height: 50vh;
    }

    .table-scroll {
        width: 80vw;
        overflow-x: auto;
    }
}
