/* ============================================================
   DWCL Evaluation Management System - Modern UI Stylesheet
   Bootstrap 5.3 Compatible | Responsive | Professional
   Color Theme: Primary Blue #0d6efd
   ============================================================ */

:root {
    --dwcl-primary: #0d6efd;
    --dwcl-primary-dark: #0a58ca;
    --dwcl-primary-light: #e7f1ff;
    --dwcl-secondary: #6c757d;
    --dwcl-success: #198754;
    --dwcl-warning: #ffc107;
    --dwcl-danger: #dc3545;
    --dwcl-info: #0dcaf0;
    --dwcl-dark: #212529;
    --dwcl-body-bg: #f1f5f9;
    --dwcl-sidebar-width: 270px;
    --dwcl-topnav-height: 60px;
    --dwcl-footer-height: 56px;
    --dwcl-card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    --dwcl-card-border: #e3e6f0;
    --dwcl-sidebar-bg: #ffffff;
    --dwcl-sidebar-hover: #e9ecef;
    --dwcl-transition: all 0.3s ease;
}

/* ---- Base Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: var(--dwcl-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--dwcl-primary);
    text-decoration: none;
    transition: var(--dwcl-transition);
}
a:hover {
    color: var(--dwcl-primary-dark);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    color: var(--dwcl-dark);
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 1rem 0;
    opacity: 0.4;
}

code {
    font-size: 0.85em;
    color: var(--dwcl-primary);
    background: var(--dwcl-primary-light);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.sb-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--dwcl-topnav-height);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--dwcl-primary) 0%, var(--dwcl-primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sb-topnav .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    padding: 0 0.5rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

#sidebarToggle {
    color: rgba(255,255,255,0.85);
    background: transparent;
    border: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--dwcl-transition);
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#sidebarToggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.topnav-school-name {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
#layoutSidenav {
    display: flex;
    min-height: 100vh;
    padding-top: var(--dwcl-topnav-height);
}

#layoutSidenav_nav {
    flex: 0 0 var(--dwcl-sidebar-width);
    max-width: var(--dwcl-sidebar-width);
    min-height: calc(100vh - var(--dwcl-topnav-height));
    transition: var(--dwcl-transition);
}

#layoutSidenav_content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--dwcl-topnav-height));
    margin-left: 0;
}

main {
    flex: 1 1 auto;
    padding: 1.5rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sb-sidenav {
    position: fixed;
    top: var(--dwcl-topnav-height);
    left: 0;
    width: var(--dwcl-sidebar-width);
    height: calc(100vh - var(--dwcl-topnav-height));
    background: var(--dwcl-sidebar-bg);
    border-right: 1px solid var(--dwcl-card-border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    transition: var(--dwcl-transition);
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.sb-sidenav-light {
    background: var(--dwcl-sidebar-bg);
}

.sb-sidenav-menu {
    flex: 1 1 auto;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.sb-sidenav-menu img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

.sb-sidenav-menu .nav {
    display: block;
    padding: 0.5rem 0;
}

.sb-sidenav-menu-heading {
    display: block;
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adb5bd;
}

.sb-sidenav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    color: #495057;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--dwcl-transition);
    margin: 2px 0.5rem;
    border-radius: 6px;
}

.sb-sidenav .nav-link:hover {
    background: var(--dwcl-sidebar-hover);
    color: var(--dwcl-primary);
    text-decoration: none;
    border-left-color: var(--dwcl-primary);
}

.sb-sidenav .nav-link.active {
    background: var(--dwcl-primary-light);
    color: var(--dwcl-primary);
    border-left-color: var(--dwcl-primary);
    font-weight: 600;
}

.sb-nav-link-icon {
    margin-right: 0.6rem;
    font-size: 1rem;
    width: 1.4rem;
    text-align: center;
    color: #6c757d;
}

.sb-sidenav .nav-link:hover .sb-nav-link-icon,
.sb-sidenav .nav-link.active .sb-nav-link-icon {
    color: var(--dwcl-primary);
}

.sb-sidenav-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    font-size: 0.8rem;
    color: #6c757d;
}
.sb-sidenav-footer .small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.sb-sidenav-footer b {
    color: var(--dwcl-primary);
    font-size: 0.85rem;
}

/* ============================================================
   SIDEBAR TOGGLE (Collapsed)
   ============================================================ */
body.sb-sidenav-toggled #layoutSidenav_nav {
    margin-left: calc(-1 * var(--dwcl-sidebar-width));
}
body.sb-sidenav-toggled #layoutSidenav_content {
    margin-left: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--dwcl-card-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--dwcl-card-border);
    transition: var(--dwcl-transition);
}
.card:hover {
    box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.15);
}
.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid var(--dwcl-card-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}
.card-body {
    padding: 1.25rem;
}
.card-footer {
    background-color: #f8f9fc;
    border-top: 1px solid var(--dwcl-card-border);
    padding: 0.8rem 1.25rem;
}

/* Card header color variants */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--dwcl-primary), var(--dwcl-primary-dark)) !important;
    color: #fff;
    border-bottom: none;
}
.card-header.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
    color: #fff;
    border-bottom: none;
}
.card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffca2c) !important;
    color: #212529;
    border-bottom: none;
}
.card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b) !important;
    color: #fff;
    border-bottom: none;
}
.card-header.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    color: #212529;
    border-bottom: none;
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0;
}

.table > thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
    padding: 0.85rem 0.75rem;
    white-space: nowrap;
}

.table > tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table-bordered > :not(caption) > * {
    border-width: 0 0 1px;
}

.table-hover > tbody > tr:hover {
    background-color: var(--dwcl-primary-light);
}

/* Responsive table wrapper */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-floating {
    margin-bottom: 0.5rem;
}
.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 1rem 0.75rem 0.25rem;
    font-size: 0.88rem;
    transition: var(--dwcl-transition);
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--dwcl-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.form-floating > label {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 1rem 0.75rem;
}

.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    font-size: 0.88rem;
    transition: var(--dwcl-transition);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--dwcl-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 1.25rem;
    transition: var(--dwcl-transition);
    letter-spacing: 0.3px;
}
.btn-sm {
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--dwcl-primary), var(--dwcl-primary-dark));
    border: none;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--dwcl-primary-dark), #084298);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}
.btn-success {
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.4);
}
.btn-warning {
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}
.btn-warning:hover {
    transform: translateY(-1px);
}
.btn-danger {
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}
.btn-danger:hover {
    transform: translateY(-1px);
}
.btn-info {
    box-shadow: 0 2px 4px rgba(13, 202, 240, 0.3);
}
.btn-info:hover {
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.sb-footer {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--dwcl-primary) 0%, var(--dwcl-primary-dark) 100%);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}
.sb-footer a {
    color: #fff;
    font-weight: 500;
}
.sb-footer a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* ============================================================
   AUTHENTICATION PAGES (Login, Register, Verify)
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: authBgPulse 8s ease-in-out infinite;
}
@keyframes authBgPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.auth-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
    overflow: hidden;
    animation: authCardIn 0.5s ease-out;
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card .card-header {
    background: linear-gradient(135deg, var(--dwcl-primary), var(--dwcl-primary-dark)) !important;
    padding: 1.5rem;
    text-align: center;
    border-bottom: none;
}
.auth-card .card-header img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.auth-card .card-header h3,
.auth-card .card-header h5 {
    color: #fff;
    margin: 0.25rem 0;
    font-weight: 600;
}

.auth-card .card-body {
    padding: 2rem;
}
.auth-card .card-body .form-floating {
    margin-bottom: 1rem;
}
.auth-card .card-body .form-floating .form-control,
.auth-card .card-body .form-floating .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 1rem 0.75rem 0.25rem;
}
.auth-card .card-body .form-floating .form-control:focus,
.auth-card .card-body .form-floating .form-select:focus {
    background: #fff;
    border-color: var(--dwcl-primary);
}

.auth-card .card-footer {
    background: #f8f9fc;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
    text-align: center;
}
.auth-card .card-footer .btn {
    margin: 0.25rem;
}

.auth-footer {
    padding: 1rem 0;
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}
.auth-footer a {
    color: #fff;
    font-weight: 500;
}
.auth-footer .container-fluid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* ============================================================
   LOGIN BUTTONS SPECIFIC
   ============================================================ */
.auth-card .btn-primary.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    letter-spacing: 0.5px;
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1,
.page-header h2,
.page-header h3 {
    font-weight: 700;
    color: var(--dwcl-dark);
}
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
    border-left: 4px solid;
    border-radius: 0.5rem;
    transition: var(--dwcl-transition);
}
.stat-card:hover {
    transform: translateY(-2px);
}
.stat-card.border-primary { border-left-color: var(--dwcl-primary) !important; }
.stat-card.border-success { border-left-color: var(--dwcl-success) !important; }
.stat-card.border-warning { border-left-color: var(--dwcl-warning) !important; }
.stat-card.border-danger { border-left-color: var(--dwcl-danger) !important; }
.stat-card.border-info { border-left-color: var(--dwcl-info) !important; }

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.5;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dwcl-dark);
}
.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* ============================================================
   DASHBOARD INSTRUCTIONS
   ============================================================ */
.instruction-card {
    background: linear-gradient(135deg, var(--dwcl-primary-light), #fff);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.instruction-card h4 {
    font-weight: 700;
    color: var(--dwcl-primary);
    margin-bottom: 1rem;
}
.instruction-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.instruction-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
}
.instruction-card ul li:last-child {
    border-bottom: none;
}
.instruction-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--dwcl-primary);
}

/* ============================================================
   EVALUATION FORM STYLES
   ============================================================ */
.eval-category-header {
    background: linear-gradient(135deg, var(--dwcl-primary), var(--dwcl-primary-dark));
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
}
.eval-guide-card {
    background: #f8f9fc;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

/* ============================================================
   NOTIFICATION / ALERT MESSAGES
   ============================================================ */
.alert {
    border-radius: 0.5rem;
    font-size: 0.88rem;
    border: none;
}
.alert-success {
    background: linear-gradient(135deg, #d1e7dd, #c3e6cb);
    color: #0f5132;
}
.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #842029;
}
.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffecb5);
    color: #664d03;
}
.alert-info {
    background: linear-gradient(135deg, #cff4fc, #b6effb);
    color: #055160;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 0.4rem;
    font-size: 0.75rem;
}

/* ============================================================
   DROPDOWN MENUS
   ============================================================ */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    animation: dropdownIn 0.2s ease-out;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    transition: var(--dwcl-transition);
}
.dropdown-item:hover {
    background: var(--dwcl-primary-light);
    color: var(--dwcl-primary);
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important; }

.rounded-lg { border-radius: 0.75rem !important; }
.rounded-xl { border-radius: 1rem !important; }

.text-gradient {
    background: linear-gradient(135deg, var(--dwcl-primary), #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Large screens (desktops) */
@media (min-width: 1200px) {
    main {
        padding: 2rem;
    }
}

/* Medium screens (tablets landscape) */
@media (max-width: 991.98px) {
    #layoutSidenav {
        flex-direction: column;
    }

    #layoutSidenav_nav {
        position: fixed;
        top: var(--dwcl-topnav-height);
        left: 0;
        bottom: 0;
        z-index: 1025;
        flex: none;
        max-width: none;
        width: var(--dwcl-sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.sb-show-nav #layoutSidenav_nav {
        transform: translateX(0);
    }

    #layoutSidenav_content {
        margin-left: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #layoutSidenav_nav {
        margin-left: 0;
    }

    .topnav-school-name {
        display: none;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--dwcl-topnav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1019;
        transition: opacity 0.3s ease;
    }
    body.sb-show-nav .sidebar-overlay {
        display: block;
    }
}

/* Small screens (tablets portrait, phones) */
@media (max-width: 767.98px) {
    :root {
        --dwcl-topnav-height: 54px;
    }

    main {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .page-header h1,
    .page-header h2,
    .page-header h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .btn-sm {
        padding: 0.25rem 0.65rem;
        font-size: 0.78rem;
    }

    .table {
        font-size: 0.8rem;
    }
    .table > thead th {
        font-size: 0.72rem;
        padding: 0.6rem 0.5rem;
    }
    .table > tbody td {
        padding: 0.5rem;
    }

    .auth-card {
        margin: 0.5rem;
        border-radius: 0.75rem;
    }
    .auth-card .card-body {
        padding: 1.25rem;
    }

    .sb-footer .container-fluid {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .topnav-school-name {
        display: none;
    }
}

/* Extra small screens (phones) */
@media (max-width: 575.98px) {
    main {
        padding: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .form-floating {
        margin-bottom: 0.25rem;
    }

    .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.82rem;
    }

    .table-responsive {
        font-size: 0.78rem;
    }

    .auth-card .card-header img {
        max-height: 80px;
    }
    .auth-card .card-header h3 {
        font-size: 1.1rem;
    }

    .stat-card .stat-value {
        font-size: 1.2rem;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .sb-topnav,
    .sb-sidenav,
    .sb-footer,
    #sidebarToggle,
    .btn,
    .no-print {
        display: none !important;
    }

    #layoutSidenav {
        display: block;
        padding-top: 0;
    }
    #layoutSidenav_nav {
        display: none;
    }
    #layoutSidenav_content {
        margin-left: 0;
    }

    main {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        break-inside: avoid;
    }

    body {
        background: #fff;
    }
}

/* ============================================================
   DARK MODE SUPPORT (optional, respects system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* Keep light mode by default for this school system */
}

/* ============================================================
   ADDITIONAL COMPONENT STYLES
   ============================================================ */

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--dwcl-primary-light);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dwcl-primary);
}
.step-indicator i {
    font-size: 1.1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Password requirements */
.password-requirements {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0.25rem 0;
}
.password-requirements code {
    font-size: 0.75rem;
}

/* Dept buttons group */
.dept-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.dept-buttons .btn {
    flex: 0 0 auto;
}

/* Table actions column */
.table .btn + .btn {
    margin-left: 0.25rem;
}

/* Responsive table horizontal scroll hint */
.table-responsive {
    position: relative;
}

/* Floating action button (mobile) */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1040;
}

/* Page transition */
.page-content {
    animation: fadeIn 0.3s ease;
}
