
/* Light Mode Styles - Keep your original light styles */
body {
    background-color: #ffffff; 
    color: #1d1d1d;
    font-family: Arial, sans-serif;
    transition: all 0.5s ease;
}

/* Dark Mode Styles - Modified for Material Design */
body.dark-mode {
    background-color: #121212; /* Material Design dark surface color */
    color: #f0f0f0; /* High-emphasis white with opacity */
}



/* More robust dark mode adjustments */
body.dark-mode header,
body.dark-mode svg,
body.dark-mode .fs-4,
body.dark-mode h1, 
body.dark-mode h2 { 
    color: #f0f0f0; /* High-emphasis white */
}

body.dark-mode svg path {
    fill: #f0f0f0;  /* High-emphasis white */
}

body.dark-mode .text-body-emphasis,
body.dark-mode .btn-primary,
body.dark-mode .btn-outline-secondary,
body.dark-mode .bg-body-tertiary,
body.dark-mode .border,
body.dark-mode .text-bg-dark { 
    color: #e0e0e0; /* Medium-emphasis white */
    background-color: #121212; /* Optional if you already have it */    
}


body.dark-mode .border-bottom,
body.dark-mode .container .border {
    border-color: #333 !important; /* Slightly lighter border */
}

body.dark-mode .container .bg-body-tertiary {
    background-color: #222 !important; /* Darker secondary background */
}


/* Dark Mode Styles - More specific targeting */
body.dark-mode footer {
    /* Adjustments for footer in dark mode */
}


/* Light Mode - Unchanged */
.btn-primary {
    background-color: #0d6efd; 
    color: #fff; 
}

/* Dark Mode */
body.dark-mode .btn-primary {
    background-color: #0d6efd;
    border-color: none; /* Material Design Blue 500 */
    color: #fff;
} 


/* Light Mode Styles */
.table-bordered td, 
.table-bordered th {
    border: 1.5px solid #ddd; /* Light gray border for light mode */
}

/* Dark Mode Styles */
body.dark-mode .table-bordered td,
body.dark-mode .table-bordered th {
    border: 1.5px solid #333; /* Slightly darker gray for contrast */
}


/* Light Mode Styles */
#final-gains-table {
    border-collapse: collapse; /* Make sure borders don't double up */
}

#final-gains-table td, 
#final-gains-table th {
    border: 1px solid #ddd; /* Light gray border */
    padding: 8px;           /* Add some cell padding */
    text-align: left;       /* Left-align text if needed */
    background-color: #fff; /* White background */
    color: #333;            /* Slightly darker text */
}



/* Dark Mode Styles */
body.dark-mode #final-gains-table td, 
body.dark-mode #final-gains-table th {
    border: 1px solid #333;          /* Darker border for contrast */
    background-color: #1c1c1c;       /* Slightly darker background */
    color: #e0e0e0;                  /* Lighter text for readability */
}



/* Toggle switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;    
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #f0f0f0;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #333;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);    
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* Toggle switch styles - Light Mode */
.switch .slider {
    background-color: #d8d8d8; /* Light gray background */
}

.switch .slider:before { 
    background-color: #ffffff; /* Lighter circle for the toggle */
}

/* Toggle switch styles - Dark Mode */
body.dark-mode .switch .slider {
    background-color: #444; /* Slightly darker gray background */
}

body.dark-mode .switch .slider:before { 
    background-color: #ddd; /* Darker circle for better contrast */
}


/* Other styles */
.hide-section {
    display: none;
}

.form-control {
    width: 50%;
    max-width: 200px;
    display: inline-block;
}

#csv-output,
#json-output {
    margin-bottom: 20px;
}

.show-section {
    display: block !important;
}

#resultsJumbotron .bg-body-tertiary {
    max-height: 500px;
    overflow-y: auto;
}

#download-csv-button,
#copy-json-button,
#download-csv-three-button {
    margin-right: 15px;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.missing-data-list {
    list-style: none !important;
    padding: 0;
}

.missing-data-list li {
    display: block !important;
    margin-bottom: 5px;
}



/* Media Query for Mobile Viewports */
@media only screen and (max-width: 768px) { /* Adjust breakpoint if needed */
    /*  */
  }
  