:root {
    --background-color: #181818;
    --text-color: #f8f8f8;
    --tab-selected-bg: #23272b;
    --tab-selected-text: #fff;
    --tab-border: #007bff;
}

body,
.list-group,
.list-group-item {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: monospace;
}

.dash-tabs {
    background-color: var(--background-color) !important;
    border: none;
}

/* Individual tab styling */
.dash-tab {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    padding: 6px 6px !important;
    border: 1px solid var(--tab-border);
    border-bottom: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 140px;
    font-family: monospace;
}

.dash-tab:hover {
    background-color: #222 !important;
    color: var(--tab-selected-text) !important;
}

/* Styling for the selected tab */
.dash-tab--selected {
    background-color: var(--tab-selected-bg) !important;
    color: var(--tab-selected-text) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--tab-border);
    z-index: 2;
}

/* Tab content area styling */
.tab-controller-content-wrapper, .dash-tabs-content, .dash-tab-content {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    padding: 12px;
    border-radius: 0 0 6px 6px;
    min-height: 120px;
}

.dataset-view-toggle {
    display: flex;
    margin-bottom: 20px;
    margin-top: 20px;
}


.dataset-view-toggle input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/*
.dataset-view-toggle label {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Optionally, add a hover effect */
.dataset-view-toggle label:hover {
    background-color: #585858;
}


/* Voltage Control */
.voltage-input-editing {
    background-color: #fff3e0;
    /* A light orange, for example */
    border-color: #ffcc80;
}

/* Dark card for tab panels */
.tab-card-dark {
    background-color: #23272b !important;
    color: #f8f8f8 !important;
    border: 1px solid #333 !important;
}

/* Analysis results area in dark mode */
.analysis-results-dark {
    background-color: #181818 !important;
    color: #f8f8f8 !important;
    border-color: #333 !important;
}

/* Ensure tab titles are visible in dark mode */
.card-title.text-light, .text-light {
    color: #f8f8f8 !important;
}