:root {
    --primary:   #1A2B3C;
    --secondary: #378ADD;
    --accent:    #0FA968;
    --accent-bg: #E6F9F1;
    --bg:        #F4F6FB;
    --card:      #ffffff;
    --text:      #1A2B3C;
    --muted:     #6B7280;
    --border:    #E5E7EB;
    --danger:    #dc2626;
    --success:   #0FA968;
    --shadow:    0 2px 12px rgba(26,43,60,0.08);
}
/* =====================================
   GLOBAL
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

/* =====================================
   LOGIN PAGE — Landing / Login Hybrid
===================================== */

body.login-page{
    min-height:100vh;
    overflow-x:hidden;
    overflow-y:auto;
    position:relative;
    background:#F1EFE8;
    font-family:Arial,Helvetica,sans-serif;
}

/* --- Background Layers --- */

.login-fallback-bg{
    position:fixed;
    inset:0;
    z-index:0;
    background:linear-gradient(140deg,#060d1c 0%,#0e2240 45%,#071320 100%);
}

.login-video-bg{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    z-index:1;
    display:block;
}

.login-video-overlay{
    position:fixed;
    inset:0;
    z-index:2;
    background:linear-gradient(
        110deg,
        rgba(6,12,30,0.84) 0%,
        rgba(8,20,46,0.70) 50%,
        rgba(6,12,30,0.80) 100%
    );
}

/* --- Top Navigation --- */

.lp-nav{
    position:fixed;
    top:0;left:0;right:0;
    height:64px;
    background:#ffffff;
    border-bottom:1px solid #D3D1C7;
    display:flex;
    align-items:center;
    padding:0 40px;
    gap:28px;
    z-index:300;
}

.lp-nav-brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    margin-right:auto;
}

.lp-nav-brand svg{
    width:34px;
    height:34px;
}

.lp-nav-name{
    font-size:16px;
    font-weight:600;
    color:#042C53;
    letter-spacing:-0.01em;
}

.lp-nav-name span{ color:#185FA5; }

.lp-nav-links{
    display:flex;
    gap:4px;
}

.lp-nav-link{
    display:inline-flex;
    align-items:center;
    gap:4px;
    height:36px;
    padding:0 14px;
    border-radius:7px;
    background:none;
    border:none;
    font-size:13.5px;
    color:#5F5E5A;
    cursor:pointer;
    text-decoration:none;
    transition:background .15s,color .15s;
    white-space:nowrap;
    font-family:inherit;
}

.lp-nav-link:hover{ background:#F1EFE8; color:#042C53; }

.lp-nav-cta{
    display:inline-flex;
    align-items:center;
    height:36px;
    padding:0 18px;
    background:#185FA5;
    border-radius:7px;
    font-size:12.5px;
    font-weight:600;
    color:#ffffff;
    text-decoration:none;
    letter-spacing:0.02em;
    transition:background .15s;
    white-space:nowrap;
}

.lp-nav-cta:hover{ background:#0C447C; }

/* --- Main Layout --- */

.lp-main{
    min-height:100vh;
    display:flex;
    align-items:flex-start;
    padding:88px 5% 60px;
    gap:52px;
    position:relative;
    z-index:10;
}

/* --- Left Hero Column --- */

.lp-hero{
    flex:1;
    max-width:580px;
    padding-top:24px;
}

.lp-eyebrow{
    display:inline-block;
    background:rgba(244,180,0,0.09);
    border:1px solid rgba(244,180,0,0.3);
    border-radius:50px;
    padding:5px 16px;
    font-size:11px;
    font-weight:600;
    color:#f4b400;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:20px;
}

.lp-title{
    font-size:40px;
    font-weight:800;
    color:#fff;
    line-height:1.18;
    margin:0 0 16px;
    letter-spacing:-0.5px;
}

.lp-title .lp-accent{ color:#f4b400; }

.lp-sub{
    font-size:14px;
    color:rgba(255,255,255,0.50);
    line-height:1.78;
    margin:0 0 24px;
    max-width:480px;
}

/* Feature Pills */

.lp-pills{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:26px;
}

.lp-pill{
    background:rgba(31,122,140,0.10);
    border:1px solid rgba(31,122,140,0.30);
    border-radius:50px;
    padding:5px 14px;
    font-size:11px;
    color:rgba(255,255,255,0.60);
    letter-spacing:0.3px;
}

/* CTA Buttons */

.lp-ctas{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:26px;
    flex-wrap:wrap;
}

.lp-btn-primary{
    display:inline-flex;
    align-items:center;
    height:46px;
    padding:0 24px;
    background:linear-gradient(135deg,#123c69,#1f7a8c);
    border:none;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    letter-spacing:0.6px;
    text-transform:uppercase;
    transition:opacity .2s,transform .2s;
}

.lp-btn-primary:hover{
    opacity:.88;
    transform:translateY(-1px);
}

.lp-btn-ghost{
    display:inline-flex;
    align-items:center;
    gap:9px;
    height:46px;
    padding:0 20px;
    background:transparent;
    border:1.5px solid rgba(255,255,255,0.24);
    border-radius:10px;
    font-size:13px;
    font-weight:600;
    color:rgba(255,255,255,0.70);
    cursor:pointer;
    transition:border-color .18s,color .18s;
}

.lp-btn-ghost:hover{
    border-color:rgba(255,255,255,0.50);
    color:#fff;
}

.lp-play-circle{
    width:22px;
    height:22px;
    border-radius:50%;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.22);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.lp-play-circle svg{
    width:8px;
    height:8px;
    margin-left:1px;
}

/* Achievement Badges */

.lp-badges{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:28px;
}

.lp-badge{
    display:flex;
    align-items:center;
    gap:7px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.10);
    border-radius:8px;
    padding:7px 12px;
    font-size:11px;
    font-weight:600;
    color:rgba(255,255,255,0.58);
    letter-spacing:0.5px;
    text-transform:uppercase;
}

.lp-badge svg{
    width:13px;
    height:13px;
    flex-shrink:0;
    stroke:#f4b400;
}

/* CSS Product Mockup */

.lp-mockup{
    background:rgba(6,14,30,0.90);
    border:1px solid rgba(31,122,140,0.28);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 18px 56px rgba(0,0,0,0.55),0 0 0 1px rgba(255,255,255,0.03);
}

.lp-mockup-bar{
    display:flex;
    align-items:center;
    gap:6px;
    padding:9px 14px;
    background:rgba(255,255,255,0.03);
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.lp-m-dot{
    width:9px;
    height:9px;
    border-radius:50%;
}

.lp-m-dot:nth-child(1){ background:#ff5f57; }
.lp-m-dot:nth-child(2){ background:#febc2e; }
.lp-m-dot:nth-child(3){ background:#28c840; }

.lp-mockup-label{
    font-size:10px;
    color:rgba(255,255,255,0.28);
    margin-left:8px;
    letter-spacing:0.5px;
}

.lp-mockup-body{
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.lp-mock-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.lm-stat{
    background:rgba(31,122,140,0.10);
    border:1px solid rgba(31,122,140,0.20);
    border-radius:8px;
    padding:10px 6px;
    text-align:center;
}

.lm-stat-num{
    font-size:15px;
    font-weight:800;
    color:#f4b400;
    line-height:1;
    margin-bottom:4px;
}

.lm-stat-lbl{
    font-size:9px;
    color:rgba(255,255,255,0.36);
    text-transform:uppercase;
    letter-spacing:0.8px;
}

.lp-mock-chart{ display:flex; flex-direction:column; gap:5px; }

.lm-bars{
    display:flex;
    align-items:flex-end;
    gap:5px;
    height:48px;
}

.lm-bar{
    flex:1;
    height:var(--h,50%);
    border-radius:3px 3px 0 0;
    background:linear-gradient(to top,#0e2240,#1f7a8c);
    min-height:6px;
    transition:height .3s;
}

.lm-bar.accent{
    background:linear-gradient(to top,#9a7000,#f4b400);
}

.lm-chart-lbl{
    font-size:9px;
    color:rgba(255,255,255,0.24);
    letter-spacing:0.5px;
    padding-left:2px;
}

/* --- Right Login Card (sticky so it stays visible while hero scrolls) --- */

.lp-card-wrap{
    flex-shrink:0;
    width:400px;
    position:sticky;
    top:84px;
}

.login-card{
    background:#ffffff;
    border:1px solid #D3D1C7;
    border-radius:16px;
    padding:36px 32px 28px;
    box-shadow:0 4px 24px rgba(4,44,83,0.08);
}

.lc-logo{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
    padding-bottom:16px;
    border-bottom:1px solid #EBEBEA;
}

.lc-logo svg{ width:34px; height:34px; }

.lc-logo-name{
    font-size:15px;
    font-weight:600;
    color:#042C53;
    letter-spacing:-0.01em;
}

.lc-logo-name span{ color:#185FA5; }

.lc-title{
    font-size:22px;
    font-weight:600;
    color:#042C53;
    margin-bottom:4px;
    letter-spacing:-0.01em;
}

.lc-sub{
    font-size:13px;
    color:#5F5E5A;
    margin-bottom:22px;
}

.lc-field{ margin-bottom:14px; }

.lc-field label{
    display:block;
    font-size:11px;
    font-weight:700;
    color:#042C53;
    margin-bottom:6px;
    letter-spacing:0.06em;
    text-transform:uppercase;
}

.lc-field input,
.lc-field select{
    width:100%;
    height:44px;
    border:1.5px solid #D3D1C7;
    border-radius:9px;
    padding:0 13px;
    font-size:14px;
    color:#042C53;
    background:#fafaf8;
    outline:none;
    transition:border-color .2s,box-shadow .2s,background .2s;
    box-sizing:border-box;
    appearance:none;
    -webkit-appearance:none;
    font-family:inherit;
}

.lc-field input:focus,
.lc-field select:focus{
    border-color:#185FA5;
    box-shadow:0 0 0 3px rgba(24,95,165,0.10);
    background:#fff;
}

.lc-submit{
    width:100%;
    height:46px;
    border:none;
    border-radius:9px;
    background:#185FA5;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .18s,transform .15s;
    margin-top:6px;
    letter-spacing:0.03em;
    font-family:inherit;
}

.lc-submit:hover{
    background:#0C447C;
    transform:translateY(-1px);
}

.lc-footer{
    text-align:center;
    margin-top:18px;
    font-size:11px;
    color:#9B9890;
    letter-spacing:0.01em;
}

/* =====================================
   DASHBOARDS
===================================== */

body{
    background:var(--bg);
    color:var(--text);
}

/* Shared Dashboard Layout */

.dashboard{
    width:90%;
    max-width:1400px;
    margin:auto;
    padding:40px 0;
    text-align:center;
    color:var(--text);
}

.dashboard h1{
    font-size:52px;
    margin-bottom:10px;
    color:var(--primary);
}

.dashboard p{
    color:var(--muted);
    margin-bottom:40px;
}

/* Dashboard Grid */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

/* Dashboard Cards */

.card{
    background:var(--card);
    color:var(--text);

    border-radius:24px;
    padding:35px;
    min-height:220px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.3s;
    cursor:pointer;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(18,60,105,.15);
}

.card h2{
    font-size:20px;
    margin-bottom:12px;
}

.card p{
    color:#64748b;
    margin:0;
}

/* =====================================
   LOGOUT LINK
===================================== */

.logout-link{
    display:inline-block;
    margin-top:30px;
    color:#38bdf8;
    text-decoration:none;
    font-weight:bold;
}

.logout-link:hover{
    color:white;
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:1280px){
    .lp-title{ font-size:34px; }
    .lp-nav-links{ display:none; }
}

@media(max-width:960px){
    .lp-mockup{ display:none; }
    .lp-title{ font-size:30px; }
}

@media(max-width:820px){
    body.login-page{ overflow:auto; }
    .lp-hero{ display:none; }
    .lp-main{
        padding:80px 20px 48px;
        justify-content:center;
    }
    .lp-card-wrap{
        width:100%;
        max-width:420px;
        position:static;
    }
    .lp-nav-links,.lp-nav-cta{ display:none; }
}

@media(max-width:600px){

    .dashboard h1{
        font-size:38px;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

}.page-container{
    padding:40px;
    color:#042C53;
}

.classes-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-top:30px;
}

.class-card{
    background:white;
    color:#0f172a;
    padding:25px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
    cursor:pointer;
    transition:.3s;
}

.class-card:hover{
    transform:translateY(-5px);
}

.class-card h2{
    margin-bottom:12px;
}.student-table{
    width:100%;
    margin-top:30px;
    border-collapse:collapse;
    background:white;
    color:#0f172a;
    border-radius:20px;
    overflow:hidden;
}

.student-table th{
    background:#2563eb;
    color:white;
    padding:16px;
    text-align:left;
}

.student-table td{
    padding:14px 16px;
    border-bottom:1px solid #e5e7eb;
}

.student-table tr:hover{
    background:#f8fafc;
}.roster-toolbar{
    margin:30px 0;
}

.search-box{
    width:350px;
    padding:14px;
    border:none;
    border-radius:12px;
    font-size:15px;
}

.student-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.student-row{
    background:white;
    color:#0f172a;
    border-radius:16px;
    padding:18px;
    display:grid;
    grid-template-columns:
        70px
        2fr
        80px
        120px
        120px
        320px;
    align-items:center;
}

.student-photo{
    width:50px;
    height:50px;
    background:#e2e8f0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.student-name{
    font-weight:bold;
}

.student-actions{
    display:flex;
    gap:10px;
}

.student-actions button{
    width:auto;
    padding:10px 14px;
}/* =====================================
   STUDENT PROFILE
===================================== */

.page-container{
    width:90%;
    max-width:1400px;
    margin:auto;
    padding:40px 0;
    color:#042C53;
}

.back-btn{
    display:inline-block;
    margin-bottom:25px;
    color:#185FA5;
    text-decoration:none;
    font-weight:bold;
}

.back-btn:hover{
    color:#042C53;
}

.student-profile-header{
    display:flex;
    align-items:center;
    gap:25px;
    margin-bottom:30px;
}

.profile-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    background:white;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:60px;
}

.profile-info h1{
    font-size:42px;
    margin-bottom:8px;
}

.profile-info p{
    color:#5F5E5A;
    margin-bottom:4px;
}

.student-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:30px;
}

.stat-box{
    background:white;
    color:#0f172a;
    padding:25px;
    border-radius:20px;
    text-align:center;
}

.stat-box h2{
    font-size:32px;
    color:#2563eb;
    margin-bottom:8px;
}

.profile-tabs{
    display:flex;
    gap:12px;
    margin-bottom:25px;
}

.profile-tabs button{
    width:auto;
    padding:12px 22px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    background:white;
    color:#0f172a;
    font-weight:bold;
}

.active-tab{
    background:#2563eb !important;
    color:white !important;
}

.profile-card{
    background:white;
    color:#0f172a;
    padding:30px;
    border-radius:24px;
    margin-bottom:25px;
}

.profile-card h2{
    margin-bottom:25px;
}

.profile-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.profile-grid strong{
    display:block;
    margin-bottom:6px;
    color:#475569;
}

.profile-grid p{
    font-size:17px;
}

/* MOBILE */

@media(max-width:900px){

    .student-profile-header{
        flex-direction:column;
        text-align:center;
    }

    .student-stats{
        grid-template-columns:1fr;
    }

    .profile-grid{
        grid-template-columns:1fr;
    }

}.quick-actions{
    display:flex;
    gap:15px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.quick-actions a{
    background:#2563eb;
    color:white;
    padding:14px 20px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.quick-actions a:hover{
    background:#06b6d4;
    transform:translateY(-2px);
}/* =====================================
   ATTENDANCE
===================================== */

.attendance-card{
    background:white;
    border-radius:24px;
    padding:25px;
    margin-top:25px;
    color:#0f172a;
}

.attendance-table{
    width:100%;
    border-collapse:collapse;
}

.attendance-table th{
    background:#2563eb;
    color:white;
    padding:15px;
    text-align:left;
}

.attendance-table td{
    padding:15px;
    border-bottom:1px solid #e2e8f0;
}

.present{
    color:#16a34a;
    font-weight:bold;
}

.absent{
    color:#dc2626;
    font-weight:bold;
}

.late{
    color:#f59e0b;
    font-weight:bold;
}/* =====================================
   GRADES
===================================== */

.grades-card{
    background:white;
    border-radius:24px;
    padding:25px;
    margin-top:25px;
    color:#0f172a;
}

.grades-table{
    width:100%;
    border-collapse:collapse;
}

.grades-table th{
    background:#2563eb;
    color:white;
    padding:15px;
    text-align:left;
}

.grades-table td{
    padding:15px;
    border-bottom:1px solid #e2e8f0;
}.print-btn{
    background:#2563eb;
    color:white;
    border:none;
    padding:14px 22px;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
}

.print-btn:hover{
    background:#06b6d4;
}.profile-card input,
.profile-card select{
    width:100%;
    height:46px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    padding:0 12px;
    font-size:15px;
    margin-top:8px;
}

.profile-card input:focus,
.profile-card select:focus{
    outline:none;
    border-color:#2563eb;
}

.save-btn{
    background:#0FA968;
    color:white;
    border:none;
    padding:10px 22px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition: background 0.15s;
}

.save-btn:hover{
    background:#0A8554;
}.dashboard-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:20px;
    margin:35px 0 45px;
}

.dashboard-stats .stat-box{
    background:var(--card);
    color:var(--text);
    border-radius:20px;
    padding:25px 15px;
    text-align:center;
    box-shadow:var(--shadow);
}
.action-btn
.dashboard-stats .stat-box h2{
    color:#2563eb;
    font-size:30px;
    margin-bottom:8px;
}

.dashboard-stats .stat-box p{
    color:#475569;
    margin:0;
    font-weight:600;
}

.section-title{
    color:#042C53;
    margin-bottom:25px;
    font-size:28px;
}.school-banner{
    background:white;
    color:#0f172a;
    border-radius:22px;
    padding:25px;
    margin-bottom:40px;
    text-align:left;
}

.school-banner h2{
    margin-bottom:15px;
    color:#2563eb;
}

.school-banner-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:15px;
}

.school-banner-grid p{
    margin:0;
    color:#334155;
}.quick-actions{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
    margin:30px 0 40px;
}

.action-btn{
    background:var(--secondary);
    color:white;
    padding:12px 22px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.action-btn:hover{
    background:var(--primary);
    transform:translateY(-2px);
}.recent-activity{
    background:white;
    color:#0f172a;
    border-radius:22px;
    padding:25px;
    margin-bottom:40px;
    text-align:left;
}

.recent-activity h2{
    color:#2563eb;
    margin-bottom:15px;
}

.recent-activity ul{
    padding-left:20px;
}

.recent-activity li{
    margin-bottom:10px;
    color:#334155;
}.mini-btn{
    background:#2563eb;
    color:white;
    padding:10px 14px;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
    font-size:14px;
}

.mini-btn:hover{
    background:#06b6d4;
}.student-dashboard-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    margin-bottom:30px;
}

.student-photo-large{
    width:95px;
    height:95px;
    border-radius:50%;
    background:white;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    box-shadow:0 15px 30px rgba(0,0,0,.18);
}

.student-dashboard-header h1{
    margin-bottom:6px;
}

.student-dashboard-header p{
    margin:3px 0;
}.schedule-list p{
    display:flex;
    justify-content:space-between;
    gap:12px;
    width:100%;
    padding:10px 0;
    border-bottom:1px solid #e2e8f0;
    color:#334155;
}

.schedule-list p:last-child{
    border-bottom:none;
}

.schedule-list strong{
    color:#2563eb;
}

.schedule-list span{
    color:#64748b;
    font-size:14px;
}

.behaviour-status{
    display:inline-block;
    padding:10px 18px;
    border-radius:999px;
    font-weight:bold;
    margin:12px 0;
}

.behaviour-status.good{
    background:#dcfce7;
    color:#166534;
}

.behaviour-status.warning{
    background:#fef3c7;
    color:#92400e;
}

.behaviour-status.serious{
    background:#fee2e2;
    color:#991b1b;
}.notice-textarea{
    width:100%;
    min-height:130px;
    margin-top:10px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:14px;
    font-size:15px;
    resize:vertical;
}.warning{
    color:#b45309;
    font-weight:bold;
}

/* =====================================================
   DB LAYOUT — Admin Dashboard v2
   Primary #123c69 | Teal #1f7a8c | Gold #f4b400
   Background #f0f4f9 | Cards #ffffff
   Redesigned: spacious, professional, school SaaS
===================================================== */

body.db-page {
    margin: 0;
    background: #F4F6FB;
    font-family: Arial, Helvetica, sans-serif;
    color: #1A2B3C;
}

/* ----- Shell ----- */
.db-shell {
    display: flex;
    min-height: 100vh;
}

/* ----- Sidebar ----- */
.db-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 248px;
    background: #ffffff;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
}

.db-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #E5E7EB;
    text-decoration: none;
    flex-shrink: 0;
}

.db-sidebar-brand svg {
    width: 28px; height: 28px;
    flex-shrink: 0;
}

/* Override hardcoded amber stroke on old house icons */
.db-sidebar-brand > svg { stroke: #0FA968; }

.db-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B3C;
    letter-spacing: 0.02em;
}

.db-brand-name span {
    color: #0FA968;
}

.db-nav-group {
    padding: 16px 10px 4px;
}

.db-nav-group-label {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 10px 8px;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #6B7280;
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.db-nav-item svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.db-nav-item:hover {
    background: #F4F6FB;
    color: #1A2B3C;
}

.db-nav-item.active {
    background: rgba(15,169,104,0.12);
    color: #0A8554;
    font-weight: 600;
}

.db-sidebar-footer {
    margin-top: auto;
    padding: 14px 10px;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.db-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: #5F5E5A;
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
    width: 100%;
}

.db-logout-btn svg {
    width: 16px; height: 16px;
    stroke: currentColor;
}

.db-logout-btn:hover {
    background: rgba(192,57,43,0.07);
    color: #c0392b;
}

/* ----- Top Bar ----- */
.db-topbar {
    position: fixed;
    top: 0; left: 248px; right: 0;
    height: 62px;
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    gap: 16px;
}

.db-topbar-school {
    font-size: 14px;
    font-weight: 600;
    color: #1A2B3C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Notification bell */
.db-topbar-bell {
    position: relative;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #F4F6FB;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    color: #6B7280;
    transition: background 0.15s;
}
.db-topbar-bell:hover { background: #E5E7EB; }
.db-topbar-bell svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.db-topbar-bell-badge {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: #dc2626;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* User avatar block */
.db-topbar-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.db-topbar-avatar:hover { background: #F4F6FB; }
.db-topbar-avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #0FA968;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.db-topbar-avatar-info { text-align: left; line-height: 1.2; }
.db-topbar-avatar-name {
    font-size: 13px;
    font-weight: 600;
    color: #1A2B3C;
    white-space: nowrap;
}
.db-topbar-avatar-role {
    font-size: 11px;
    color: #6B7280;
    white-space: nowrap;
}
.db-topbar-avatar-chevron {
    width: 14px; height: 14px;
    stroke: #9CA3AF;
    fill: none;
    flex-shrink: 0;
}

/* Legacy topbar user/logout (kept for backward compat) */
.db-topbar-user {
    font-size: 13px;
    color: #6B7280;
}

.db-topbar-user strong {
    color: #1A2B3C;
    font-weight: 600;
}

.db-topbar-logout {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    padding: 7px 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    transition: background 0.15s;
    white-space: nowrap;
}

.db-topbar-logout:hover {
    background: rgba(220,38,38,0.06);
}

/* ----- Content Area ----- */
.db-content {
    margin-left: 248px;
    margin-top: 62px;
    padding: 36px 40px 56px;
    min-height: calc(100vh - 62px);
}

/* Pages using db-main (no topbar) still need to clear the fixed sidebar */
.db-main {
    margin-left: 248px;
}

/* ----- Hero Welcome Card ----- */
.db-hero-card {
    background: #1A2B3C;
    border-radius: 16px;
    padding: 36px 44px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.db-hero-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(55,138,221,0.20);
    pointer-events: none;
}

.db-hero-card::after {
    content: '';
    position: absolute;
    bottom: -50px; right: 120px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(15,169,104,0.12);
    pointer-events: none;
}

.db-hero-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.db-hero-left { flex: 1; }

.db-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: #0FA968;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.db-hero-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.db-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 560px;
}

.db-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.db-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.70);
}

.db-hero-chip strong {
    color: #bbf7d0;
    font-weight: 600;
}

.db-hero-right {
    flex-shrink: 0;
    text-align: right;
    padding-top: 4px;
}

.db-hero-school {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.01em;
}

/* ----- Section Wrapper ----- */
.db-section {
    margin-bottom: 40px;
}

.db-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.db-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1A2B3C;
    letter-spacing: -0.01em;
}

/* ----- Quick Actions ----- */
.db-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.db-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    text-decoration: none;
    color: #1A2B3C;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 1px 5px rgba(26,43,60,0.06);
}

.db-quick-action:hover {
    background: #0FA968;
    color: #fff;
    border-color: #0FA968;
    box-shadow: 0 4px 18px rgba(15,169,104,0.25);
    transform: translateY(-1px);
}

.db-quick-action:hover .db-qa-icon {
    background: rgba(255,255,255,0.20);
}

.db-qa-icon {
    width: 30px; height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.db-qa-icon svg {
    width: 15px; height: 15px;
    stroke: currentColor;
}

/* ----- Stats Grid ----- */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.db-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(26,43,60,0.08);
    transition: box-shadow 0.18s, transform 0.18s;
}

.db-stat-card:hover {
    box-shadow: 0 8px 28px rgba(26,43,60,0.13);
    transform: translateY(-2px);
}

.db-stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-stat-icon svg {
    width: 24px; height: 24px;
}

.db-stat-val {
    font-size: 30px;
    font-weight: 700;
    color: #1A2B3C;
    line-height: 1;
}

.db-stat-lbl {
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 5px;
    font-weight: 500;
    line-height: 1.35;
}

.db-stat-sub {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 3px;
}

/* icon color variants — pastel tints */
.db-ic-green  { background: #D1FAE5; color: #059669; }
.db-ic-blue   { background: #DBEAFE; color: #2563EB; }
.db-ic-purple { background: #EDE9FE; color: #7C3AED; }
.db-ic-amber  { background: #FEF3C7; color: #D97706; }
.db-ic-teal   { background: #CCFBF1; color: #0F766E; }
.db-ic-red    { background: #FEE2E2; color: #DC2626; }
.db-ic-navy   { background: #E0E7FF; color: #4338CA; }
.db-ic-orange { background: #FFEDD5; color: #EA580C; }
.db-ic-gold   { background: #FEF3C7; color: #B45309; }

/* ----- Charts Row ----- */
.db-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 18px;
}

.db-chart-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    border: none;
    box-shadow: 0 2px 12px rgba(26,43,60,0.08);
}

.db-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B3C;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.db-donut-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.db-donut-wrap canvas {
    display: block;
}

.db-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.db-donut-pct {
    font-size: 28px;
    font-weight: 700;
    color: #1A2B3C;
}

.db-donut-sub {
    font-size: 11px;
    color: #6B7280;
    margin-top: 3px;
}

/* ----- Module Groups ----- */
.db-module-group {
    margin-bottom: 0;
}

.db-module-group-title {
    font-size: 17px;
    font-weight: 700;
    color: #1A2B3C;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
    letter-spacing: -0.01em;
}

.db-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.db-module-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 10px rgba(26,43,60,0.07);
}

.db-module-card:hover {
    box-shadow: 0 6px 24px rgba(26,43,60,0.14);
    transform: translateY(-2px);
}

.db-module-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-module-icon svg {
    width: 20px; height: 20px;
}

.db-module-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A2B3C;
    margin-bottom: 4px;
}

.db-module-desc {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.45;
}

/* ----- Activity Card ----- */
.db-activity-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    border: none;
    box-shadow: 0 2px 12px rgba(26,43,60,0.08);
}

.db-activity-title {
    font-size: 17px;
    font-weight: 700;
    color: #1A2B3C;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
    letter-spacing: -0.01em;
}

.db-activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.db-activity-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid #E5E7EB;
}

.db-activity-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
    color: #374151;
}

.db-activity-table tr:last-child td {
    border-bottom: none;
}

.db-activity-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.db-activity-when {
    white-space: nowrap;
    color: #9ca3af;
    font-size: 12px;
}

/* Kept for other dashboards that use these classes */
.db-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.db-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #1A2B3C;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.db-quick-btn:hover {
    background: #0FA968;
    color: #fff;
    border-color: #0FA968;
}

.db-quick-btn svg {
    width: 14px; height: 14px;
    stroke: currentColor;
}

/* ----- db-card (used on management pages inside db-content) ----- */
.db-card {
    background: var(--card-bg, #ffffff);
    border: none;
    border-radius: 14px;
    padding: 24px 26px;
    box-shadow: 0 2px 12px rgba(26,43,60,0.08);
    transition: background .2s;
}

.db-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--card-title, #1A2B3C);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

/* ----- Dark / Light Mode Variables ----- */
:root {
    --card-bg:      #ffffff;
    --card-border:  #E5E7EB;
    --card-title:   #1A2B3C;
    --content-bg:   #F4F6FB;
    --content-text: #1A2B3C;
    --input-bg:     #ffffff;
    --input-border: #E5E7EB;
    --topbar-bg:    #ffffff;
    --topbar-border:#E5E7EB;
}

body.dark-mode {
    --card-bg:      #1e2330;
    --card-border:  #2a3040;
    --card-title:   #e0e6f0;
    --content-bg:   #121827;
    --content-text: #c8d4e0;
    --input-bg:     #151b26;
    --input-border: #2a3040;
    --topbar-bg:    #1a2235;
    --topbar-border:#2a3040;
}

body.dark-mode.db-page  { background: var(--content-bg); color: var(--content-text); }
body.dark-mode .db-topbar { background: var(--topbar-bg); border-bottom-color: var(--topbar-border); }
body.dark-mode .db-topbar-school { color: #c8d4e0; }
body.dark-mode .db-topbar-user   { color: #8899aa; }
body.dark-mode .db-topbar-user strong { color: #e0e6f0; }
body.dark-mode .db-page-title    { color: #e0e6f0; }
body.dark-mode .db-page-sub      { color: #8899aa; }
body.dark-mode .db-info-bar      { background: #1e2330; color: #8899aa; }
body.dark-mode .db-info-bar strong { color: #e0e6f0; }
body.dark-mode .db-stat-card     { background: #1e2330; }
body.dark-mode .db-stat-val      { color: #e0e6f0; }
body.dark-mode .db-stat-lbl      { color: #8899aa; }
body.dark-mode .db-chart-card    { background: #1e2330; }
body.dark-mode .db-chart-title   { color: #e0e6f0; }
body.dark-mode .grades-table th  { background: #1a2235; color: #8899aa; border-color: #2a3040; }
body.dark-mode .grades-table td  { color: #c8d4e0; border-color: rgba(255,255,255,.05); }
body.dark-mode .grades-table tr:hover td { background: rgba(255,255,255,.03); }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--content-text) !important;
}
body.dark-mode .save-btn { background: #0FA968; }

/* ----- Theme Toggle Button (injected by theme.js) ----- */
#theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #0FA968;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: background .15s, transform .15s;
    color: #fff;
    font-size: 18px;
}
#theme-toggle-btn:hover { background: #0A8554; transform: scale(1.08); }

/* Page header + info bar kept for non-admin dashboard pages */
.db-page-header { margin-bottom: 28px; }

.db-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A2B3C;
}

.db-page-sub {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}

.db-info-bar {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #6B7280;
    box-shadow: 0 1px 6px rgba(26,43,60,0.07);
}

.db-info-bar strong { color: #1A2B3C; }

/* Back button used on sub-pages */
.db-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(26,43,60,0.06);
}

.db-back-btn:hover { background: #F4F6FB; }

/* ----- Responsive ----- */
@media (max-width: 1240px) {
    .db-charts-row { grid-template-columns: 1fr 1fr; }
    .db-charts-row .db-chart-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .db-content { padding: 28px 24px 40px; }
    .db-hero-card { padding: 30px 28px; }
    .db-hero-title { font-size: 24px; }
}

@media (max-width: 768px) {
    .db-sidebar { transform: translateX(-248px); transition: transform .25s; }
    .db-sidebar.mobile-open { transform: translateX(0); }
    .db-topbar  { left: 0; }
    .db-content { margin-left: 0; padding: 20px 16px 36px; }
    .db-main    { margin-left: 0 !important; padding: 16px !important; }
    .db-stats-grid { grid-template-columns: 1fr 1fr; }
    .db-charts-row { grid-template-columns: 1fr; }
    .db-modules-grid { grid-template-columns: repeat(2, 1fr); }
    .db-hero-body { flex-direction: column; }
    .db-hero-right { display: none; }
    .db-hero-chip { font-size: 12px; padding: 7px 12px; }
    .db-card { padding: 18px 16px; }
    .profile-grid { grid-template-columns: 1fr !important; }
    .grades-table { font-size: 12px; }
    .grades-table th, .grades-table td { padding: 8px 10px; }
    #theme-toggle-btn { bottom: 16px; right: 16px; width: 36px; height: 36px; font-size: 16px; }
}

/* ----- Mobile hamburger menu button ----- */
#mobile-menu-btn {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 300;
    background: #1A2B3C;
    border: none; border-radius: 8px;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 18px;
}
@media (max-width: 768px) {
    #mobile-menu-btn { display: flex; }
    .db-topbar { padding-left: 56px; }
}

/* ----- Sidebar overlay for mobile ----- */
#sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
}
#sidebar-overlay.visible { display: block; }

/* =====================================================
   NEW DESIGN SYSTEM — Shared Light-Theme Utilities
   Teal-green primary #0FA968 | Navy #1A2B3C | #F4F6FB bg
===================================================== */

/* ----- Page heading block ----- */
.ds-page-header {
    margin-bottom: 28px;
}
.ds-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A2B3C;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.ds-page-sub {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

/* ----- Primary action button ----- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.ds-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.ds-btn-primary { background: #0FA968; color: #fff; }
.ds-btn-primary:hover { background: #0A8554; }
.ds-btn-secondary { background: #F4F6FB; color: #1A2B3C; border: 1px solid #E5E7EB; }
.ds-btn-secondary:hover { background: #E5E7EB; }
.ds-btn-danger { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.ds-btn-danger:hover { background: #FECACA; }
.ds-btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* ----- Underline tab navigation ----- */
.ds-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 24px;
}
.ds-tab {
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.ds-tab:hover { color: #1A2B3C; }
.ds-tab.active { color: #0FA968; border-bottom-color: #0FA968; font-weight: 600; }
.ds-panel { display: none; }
.ds-panel.active { display: block; }

/* ----- Form fields ----- */
.ds-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ds-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}
.ds-field input,
.ds-field select,
.ds-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1A2B3C;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.ds-field input:focus,
.ds-field select:focus,
.ds-field textarea:focus {
    outline: none;
    border-color: #0FA968;
    box-shadow: 0 0 0 3px rgba(15,169,104,0.12);
}
.ds-field .ds-input-wrap {
    position: relative;
}
.ds-field .ds-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    stroke: #9CA3AF;
    fill: none;
    pointer-events: none;
}
.ds-field .ds-input-wrap input,
.ds-field .ds-input-wrap select {
    padding-left: 34px;
}
.ds-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 18px;
    margin-bottom: 18px;
}

/* ----- Table ----- */
.ds-table-wrap { overflow-x: auto; }
.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.ds-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #E5E7EB;
    background: #F9FAFB;
}
.ds-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: middle;
}
.ds-table tbody tr:hover td { background: #F9FAFB; }
.ds-table tbody tr:last-child td { border-bottom: none; }

/* ----- Empty state ----- */
.ds-empty {
    text-align: center;
    padding: 48px 24px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-top: 8px;
}
.ds-empty-icon {
    width: 48px; height: 48px;
    stroke: #9CA3AF;
    fill: none;
    margin: 0 auto 14px;
    display: block;
}
.ds-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2B3C;
    margin-bottom: 6px;
}
.ds-empty-sub {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.55;
    max-width: 320px;
    margin: 0 auto;
}

/* ----- Status badges ----- */
.ds-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.ds-badge-green  { background: #D1FAE5; color: #059669; }
.ds-badge-blue   { background: #DBEAFE; color: #2563EB; }
.ds-badge-amber  { background: #FEF3C7; color: #D97706; }
.ds-badge-red    { background: #FEE2E2; color: #DC2626; }
.ds-badge-gray   { background: #F3F4F6; color: #6B7280; }
.ds-badge-purple { background: #EDE9FE; color: #7C3AED; }

/* ----- Filter row ----- */
.ds-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ds-filter-row label { font-size: 13px; color: #6B7280; font-weight: 500; }
.ds-filter-row select,
.ds-filter-row input {
    padding: 7px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: #1A2B3C;
    background: #fff;
}
.ds-filter-row select:focus,
.ds-filter-row input:focus { outline: none; border-color: #0FA968; }

/* ----- Progress bar ----- */
.ds-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    overflow: hidden;
    min-width: 64px;
}
.ds-progress-fill {
    height: 100%;
    background: #0FA968;
    border-radius: 3px;
    transition: width 0.3s;
}

/* ----- Lp nav color update ----- */
.lp-nav { border-bottom-color: #E5E7EB; }

/* Light-theme override for db-main pages without topbar */
.db-main {
    background: #F4F6FB;
    color: #1A2B3C;
}