/* vitals/public/light-theme.css */

/* Apply light theme variables */
body.theme-light {
    background-color: #f8f9fa; /* Light background */
    color: #212529; /* Dark text */
}

/* --- Landing Page Specific Styles (Light Theme) --- */
body.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
}

.landing-page .card {
    width: 100%;
    max-width: 550px;
    border-radius: 0.5rem;
    background-color: #ffffff; /* White card */
    border: 1px solid #dee2e6; /* Standard light border */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    color: #212529; /* Dark text */
}
.landing-page .card .card-body { color: #212529; }

#session-info-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e9ecef; /* Light grey info box */
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    display: none;
    word-wrap: break-word;
    color: #495057; /* Muted dark text */
}
#session-info-display a { margin: 0 5px; }
#session-info-display a:link,
#session-info-display a:visited { color: #0d6efd; text-decoration: underline; }
#session-info-display a:hover,
#session-info-display a:active { color: #0a58ca; }

#qr-code-container {
     margin-top: 1rem;
     padding: 10px;
     background-color: white;
     display: inline-block;
     border-radius: 5px;
     line-height: 0;
     border: 1px solid #dee2e6;
}
#qr-code-display img { max-width: 100%; height: auto; }
#qr-code-container .qr-code-label {
     color: #212529;
     text-align: center;
     font-size: 0.8rem;
     margin-top: 0.5rem;
     display: block;
}

.landing-page .btn-outline-info {
    --bs-btn-color: #0dcaf0;
    --bs-btn-border-color: #0dcaf0;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #0dcaf0;
    --bs-btn-hover-border-color: #0dcaf0;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #0dcaf0;
    --bs-btn-active-border-color: #0dcaf0;
}
.landing-page .btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
}

.landing-page #status-message.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.landing-page #status-message.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }

.landing-page #mgecs-link a { color: var(--bs-link-color); }
.landing-page #mgecs-link a:hover { color: var(--bs-link-hover-color); }
.landing-page #copyright { color: #6c757d; font-size: 0.85em; margin-top: 1.5rem; }

/* --- Instructor Page Specific Styles (Light Theme) --- */

.theme-light .container { max-width: 960px; }

/* Accordion */
.theme-light .accordion-button { background-color: #ffffff; color: #212529; }
.theme-light .accordion-button:not(.collapsed) { background-color: #e7f1ff; color: #0c63e4; }
.theme-light .accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); border-color: rgba(0, 0, 0, 0.125); }
.theme-light .accordion-item { background-color: #ffffff; border: 1px solid rgba(0, 0, 0, 0.125); margin-bottom: 1rem; }

/* Forms */
.theme-light .form-label { font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; color: #212529; }
.theme-light .input-group-sm .form-control,
.theme-light .input-group-sm .input-group-text { font-size: 0.875rem; }
.theme-light .form-control, .theme-light .input-group-text {
    background-color: #fff;
    color: #495057;
    border-color: #ced4da;
}
.theme-light .text-muted { color: #6c757d !important; }

/* Visibility/Control Buttons */
.theme-light .visibility-controls { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.theme-light .visibility-controls .btn { font-size: 0.75em; padding: 0.2rem 0.4rem; }

.theme-light .button-controls,
.theme-light .rhythm-controls,
.theme-light .etco2-shape-controls,
.theme-light .pacing-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }

.theme-light .rhythm-controls .rhythm-btn { border-color: #6c757d; color: #6c757d; }
.theme-light .rhythm-controls .rhythm-btn.active { background-color: #6c757d !important; border-color: #6c757d !important; color: white !important; }
.theme-light #toggle-capture-btn.btn-info { color: white; background-color: #0dcaf0; border-color: #0dcaf0; }
.theme-light #toggle-capture-btn.btn-outline-info { color: #0dcaf0; background-color: transparent; border-color: #0dcaf0; }
.theme-light .etco2-shape-controls .etco2-shape-btn { border-color: #ffc107; color: #ffc107; }
.theme-light .etco2-shape-controls .etco2-shape-btn.active { background-color: #ffc107 !important; border-color: #ffc107 !important; color: #000 !important; }

/* Status Message */
.theme-light #status-message { margin-top: 1.5rem; font-weight: 500; }
.theme-light #status-message.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.theme-light #status-message.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
.theme-light #status-message.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }


/* Cards */
.theme-light .card { background-color: #ffffff; border: 1px solid #dee2e6; margin-bottom: 1rem; color: #212529; }
.theme-light .card-header { background-color: rgba(0, 0, 0, 0.03); border-bottom: 1px solid #dee2e6; font-weight: 500; color: #212529; }

/* Current Limits Display */
.theme-light #current-limits-display .limit-label { font-weight: 500; color: #6c757d; margin-right: 0.5em;}
.theme-light #current-limits-display .limit-value { font-weight: bold; padding: 0 2px; border-radius: 3px; }
.theme-light #current-limits-display .vital-row { margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #dee2e6; }
.theme-light #current-limits-display .vital-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.theme-light #current-limits-display .limit-changed { color: #0dcaf0; font-weight: bold; }
.theme-light #current-limits-display .limit-flash { animation: flash-blue-highlight 1s 10; } /* Keyframes are global */

/* Monitor List Style */
.theme-light #monitor-list .list-group-item { background-color: #f8f9fa; border-color: #dee2e6; color: #212529; font-size: 0.85rem; padding: 0.5rem 1rem; }
.theme-light #monitor-list .list-group-item.text-muted { color: #6c757d !important; }

/* Modal Styling */
.theme-light .modal-content { background-color: #f8f9fa; color: #212529; }
.theme-light .modal-header { border-bottom-color: #dee2e6; }
.theme-light .modal-footer { border-top-color: #dee2e6; }
.theme-light .modal-body .form-control { background-color: #fff; color: #495057; border-color: #ced4da; }
.theme-light .modal-body label { color: #212529; }
.theme-light .modal-body .text-success { color: #198754 !important; }
.theme-light .modal-body .text-info { color: #0dcaf0 !important; }
.theme-light .modal-body .text-danger { color: #dc3545 !important; }
/* Use default text color instead of text-light in modal */
.theme-light .modal-body label[for*="limit-rr"] { color: #212529 !important; }


/* --- Media Queries for Mobile (Copied from previous attempt) --- */
@media (max-width: 767.98px) {
    .theme-light .container { padding-left: 15px; padding-right: 15px; }
    .theme-light h1.h3 { font-size: 1.5rem; }
    .theme-light .accordion-button { padding: 0.8rem 1rem; font-size: 0.95rem; }
    .theme-light .form-label { font-size: 0.85rem; }
    .theme-light .button-controls,
    .theme-light .rhythm-controls,
    .theme-light .etco2-shape-controls,
    .theme-light .pacing-controls { gap: 0.4rem; justify-content: center; }
    .theme-light .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
    .theme-light #collapseVitals .row > div[class*="col-md-"] { margin-bottom: 1rem; }
    .theme-light .visibility-controls { justify-content: flex-start; }
    .theme-light #current-limits-display .row { flex-direction: column; }
    .theme-light #current-limits-display .row strong { margin-bottom: 0.3rem; }
    .theme-light #current-limits-display .row span[class*="col-sm-"] { width: 100%; text-align: left; }
    .theme-light .modal-dialog { max-width: 95%; }
}

@media (max-width: 575.98px) {
     .theme-light h1.h3 { font-size: 1.3rem; }
     .theme-light .btn, .theme-light .btn-sm { font-size: 0.8rem; }
     .theme-light .container { padding-left: 10px; padding-right: 10px; }
     .theme-light .accordion-body { padding: 0.8rem; }
     .theme-light .card-body { padding: 0.8rem; }
}