body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
}

header {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

h1 {
    margin: 0;
    font-size: 24px;
}

main {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-int {
    grid-column: 1 / -1;
    width: 100%;
    /* height: 600px; */
    background: #1e1e1e;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);
    display: none;
    /* style: none */
}


.chart-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    height: 400px;
    background: #1e1e1e;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);
    display: block;
    /* style: none */
}

.chart-section {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);

    width: 400px;
    margin: 15px;
    display: inline-block;
    vertical-align: top;
}

h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* .chart-section {
    width: 400px;
    margin: 15px;
    display: inline-block;
    vertical-align: top;
} */

canvas {
    max-width: 100%;
    max-height: 250px;

}

#interactiveChart,
.chart-wrapper {
    max-width: 100%;
    max-height: 900px;
    height: 400px;
}

#interactiveChartToD {
    max-width: 100%;
    max-height: 600px;
    min-height: 400px;
}

.metric-card {
    width: 200px;
    padding: 15px;
    margin: 15px;
    display: inline-block;
    background: #1e1e2f;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.metric-card h3 {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: bold;
    color: #4caf50;
}



/* COMPACT FILTER MENU */
.filter-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: visible;
    border: 1px solid #e0e0e0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f7fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.toggle-filters-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.toggle-filters-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

.filters-panel {
    padding: 15px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 7px 12px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.dropdown-toggle:hover {
    border-color: #6c9ce8;
    background: #f8fbff;
}

.dropdown.open .dropdown-toggle {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
    background: white;
}

.selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #2c3e50;
}

.arrow {
    transition: transform 0.2s;
    font-size: 10px;
    color: #6c757d;
    margin-left: 5px;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
    color: #4a90e2;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    margin-top: 3px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px;
}

.dropdown.open .dropdown-menu {
    display: block;
    flex-direction: column;
}

.search-input {
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    outline: none;
    background: #f8f9fa;
}

.search-input:focus {
    border-bottom-color: #4a90e2;
    background: white;
}

.search-input::placeholder {
    color: #6c757d;
    font-size: 12px;
}

.options-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 5px 0;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

.option-item:hover {
    background: #f0f7ff;
}

.option-item input {
    margin-right: 8px;
    transform: scale(0.9);
}

.option-item span {
    color: #2c3e50;
}

.dropdown-actions {
    padding: 8px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    background: #f8f9fa;
}

.select-all-btn,
.clear-selection-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.select-all-btn:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.clear-selection-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.apply-filters-btn,
.clear-filters-btn,
.add-chart-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.apply-filters-btn,
.add-chart-btn {
    background: #28a745;
    color: white;
    box-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

.apply-filters-btn:hover,
.add-chart-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.clear-filters-btn {
    background: #6c757d;
    color: white;
    box-shadow: 0 1px 2px rgba(108, 117, 125, 0.2);
}

.clear-filters-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.active-filters {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.active-filters strong {
    color: #495057;
    font-size: 13px;
    margin-right: 8px;
}

.active-filter-tag {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1565c0;
}

.remove-filter-btn {
    background: none;
    border: none;
    color: #4a90e2;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.remove-filter-btn:hover {
    color: #d32f2f;
}

/* Optional: Two-column layout for more filters */
.compact-mode .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.compact-mode .filter-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.compact-mode .dropdown-toggle {
    padding: 6px 10px;
    font-size: 12px;
}

.compact-mode .dropdown-menu {
    max-height: 160px;
}

/* Scrollbar styling for dropdowns */
.options-list::-webkit-scrollbar {
    width: 6px;
}

.options-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.options-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-header {
        padding: 8px 12px;
    }

    .filter-header h3 {
        font-size: 14px;
    }

    .filters-panel {
        padding: 12px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* for the menue */
.category-menu {
    grid-column: 1 / -1;
    /* span full width */
    display: flex;
    gap: 40px;
    margin-bottom: 10px;
    justify-content: center;
}

/* .category-menu {
    display: flex;
    gap: 12px;
    #121212;
    background-color: #f0f0f0;
    margin-bottom: 25px;
} */

.category-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    /* background-color: #e5e7eb; */
    background-color: #121212;
    /* color: #333; */
    color: #e0e0e0;
    cursor: pointer;
    font-size: 19px;
    text-decoration: underline;
    text-decoration-color: #121212;

    transition: background 0.2s, color 0.2s;
}

.category-btn:hover {
    /* background-color: #c7d2fe; */
    background-color: #181818;
}

.category-btn.active {
    /* background-color: #4f46e5; */
    color: rgb(225, 240, 94);
    text-decoration-color: rgb(225, 240, 94);
}

/* Charts */
/* .charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.chart-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
} */





.field {
    top: 11px;
    position: relative;
    display: inline-block;
}

.field input {

    padding: 14px 8px 6px;
    background: #e6e9f0;
    color: #000000;
    border: 1px solid #374151;
    border-radius: 4px;
}

.field label {
    position: absolute;
    top: -6px;
    left: 0px;
    color: #111111;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: 0.2s ease;
    background: #ffffff;
    padding: 0 4px;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field input:valid+label {
    top: -6px;
    font-size: 10px;
    color: #60a5fa;
}