:root{
    --student-primary:#0f766e;
    --student-primary-dark:#115e59;
    --student-accent:#2563eb;
    --student-success:#16a34a;
    --student-warning:#f59e0b;
    --student-danger:#dc2626;
    --student-dark:#0f172a;
    --student-muted:#64748b;
    --student-line:#e2e8f0;
    --student-surface:#ffffff;
    --student-soft:#f8fafc;
    --student-shadow:0 18px 45px rgba(15,23,42,.08);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0 !important;
    min-height:100vh;
    color:var(--student-dark);
    font-family:'Segoe UI',Tahoma,sans-serif !important;
    background:
        radial-gradient(circle at top left,rgba(15,118,110,.16),transparent 32%),
        radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 28%),
        linear-gradient(180deg,#f8fafc 0%,#eef6f3 100%) !important;
}

body,
.card,
.card-body,
.table,
.form-control,
.form-select,
.dropdown-menu,
.modal-content{
    color:var(--student-dark) !important;
}

.container,
.container-fluid{
    max-width:1180px;
}

.container.mt-4,
.container.my-5,
.container.py-4,
.container-fluid.py-4{
    margin-top:18px !important;
}

.row{
    --bs-gutter-x:1rem;
    --bs-gutter-y:1rem;
}

.text-muted,
small,
.table td,
.table th,
label,
.form-label{
    color:#334155 !important;
}

.card,
.table,
.form-control,
.form-select,
.alert{
    background-color:#fff !important;
}

.card,
.card-box,
.modern-card,
.profile-panel,
.metric-card,
.action-card,
.auth-card{
    border:1px solid rgba(226,232,240,.94) !important;
    border-radius:8px !important;
    box-shadow:0 14px 34px rgba(15,23,42,.07) !important;
}

.card{
    overflow:hidden;
}

.card-body,
.card.p-4,
.card.p-3{
    padding:16px !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.container h1,
.container h2,
.container h3,
.container h4{
    letter-spacing:0;
    overflow-wrap:anywhere;
}

.container h1,
.container h2,
.container h3{
    font-size:clamp(20px,5vw,28px);
    font-weight:900;
}

.container h4,
.container h5{
    font-size:clamp(16px,4vw,20px);
    font-weight:900;
}

.form-control,
.form-select,
.btn{
    min-height:42px;
    border-radius:8px !important;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-weight:850 !important;
    white-space:normal;
}

.alert{
    border:1px solid rgba(226,232,240,.95) !important;
    border-radius:8px !important;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.table-responsive{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:8px;
}

.table{
    width:100% !important;
    margin-bottom:0 !important;
    border-color:var(--student-line) !important;
    vertical-align:middle;
    font-size:13px;
}

.table th{
    white-space:nowrap;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.02em;
}

.table td{
    overflow-wrap:anywhere;
}

.table .btn,
td .btn{
    min-height:34px;
    padding:6px 9px !important;
    font-size:12px;
}

.table-success,
.table-success > th,
.table-success > td{
    background-color:#dcfce7 !important;
    color:#14532d !important;
}

.btn-success,
.icon-btn,
button[type="submit"].btn-success{
    background:#15803d !important;
    border-color:#15803d !important;
    color:#fff !important;
}

.btn-primary{
    background:#2563eb !important;
    border-color:#2563eb !important;
    color:#fff !important;
}

.btn-secondary{
    background:#475569 !important;
    border-color:#475569 !important;
    color:#fff !important;
}

.top-header{
    position:relative;
    z-index:1060;
    border-top:0 !important;
    background:rgba(255,255,255,.94) !important;
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(226,232,240,.9);
    box-shadow:0 12px 30px rgba(15,23,42,.07);
}

.top-header .container{
    min-height:74px;
}

.top-header img{
    width:56px !important;
    height:56px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 10px 22px rgba(15,118,110,.18);
}

.school-title{
    color:var(--student-dark) !important;
    font-weight:800 !important;
    letter-spacing:.2px;
}

.top-header small{
    color:var(--student-muted) !important;
    font-weight:600;
}

.navbar{
    position:sticky !important;
    top:0;
    z-index:1050;
    background:rgba(15,118,110,.96) !important;
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,.16);
    box-shadow:0 14px 34px rgba(15,23,42,.14) !important;
}

.navbar .container,
.navbar .container-fluid{
    overflow:visible !important;
}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:9px;
    color:#fff !important;
    font-size:16px !important;
    font-weight:800 !important;
    letter-spacing:.2px;
}

.navbar-brand::before{
    content:"";
    width:34px;
    height:34px;
    border-radius:8px;
    background:linear-gradient(135deg,#fff,rgba(255,255,255,.72));
    box-shadow:0 10px 20px rgba(15,23,42,.18);
}

.navbar .nav-link{
    display:flex;
    align-items:center;
    gap:7px;
    border-radius:8px;
    color:rgba(255,255,255,.88) !important;
    font-weight:700 !important;
    padding:10px 13px !important;
    transition:.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active{
    color:#fff !important;
    background:rgba(255,255,255,.14);
}

.navbar .nav-link.text-warning{
    color:#fff !important;
    background:rgba(245,158,11,.18);
}

.navbar-toggler{
    border:1px solid rgba(255,255,255,.25) !important;
    border-radius:8px;
    padding:8px 10px;
}

.dropdown-menu{
    overflow:hidden;
    min-width:260px;
    border:1px solid rgba(226,232,240,.95) !important;
    border-radius:8px !important;
    padding:8px !important;
    background:#fff !important;
    box-shadow:0 22px 50px rgba(15,23,42,.16) !important;
}

.dropdown-item{
    display:flex !important;
    align-items:center;
    gap:10px;
    border-radius:8px !important;
    padding:11px 12px !important;
    color:var(--student-dark) !important;
    font-size:14px;
    font-weight:700;
    transition:.2s ease;
}

.dropdown-item i{
    color:var(--student-primary) !important;
}

.dropdown-item:hover{
    background:rgba(15,118,110,.1) !important;
    color:var(--student-primary-dark) !important;
    transform:translateX(2px);
}

.auth-shell{
    width:min(1040px,100%);
    margin:0 auto;
    padding:16px 14px 24px;
    display:grid;
    gap:14px;
}

.auth-story,
.auth-card{
    border:1px solid rgba(226,232,240,.94);
    border-radius:8px;
    box-shadow:var(--student-shadow);
}

.auth-story{
    padding:20px;
    color:#fff;
    background:
        linear-gradient(135deg,rgba(15,118,110,.96),rgba(37,99,235,.82)),
        radial-gradient(circle at top right,rgba(255,255,255,.25),transparent 34%);
}

.auth-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 11px;
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.16);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.auth-story h1{
    margin:14px 0 8px;
    color:#fff;
    font-size:clamp(25px,8vw,42px);
    line-height:1.04;
    font-weight:900;
    letter-spacing:0;
}

.auth-story p{
    margin:0;
    color:rgba(255,255,255,.86);
    max-width:62ch;
    font-weight:600;
}

.auth-highlights{
    display:grid;
    gap:10px;
    margin-top:16px;
}

.auth-highlights div{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    border-radius:8px;
    color:#fff;
    background:rgba(255,255,255,.12);
    font-weight:800;
}

.auth-card{
    padding:16px;
    background:rgba(255,255,255,.96);
}

.auth-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}

.auth-logo img{
    width:48px !important;
    height:48px !important;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 12px 26px rgba(15,118,110,.16);
}

.auth-logo span{
    display:block;
    color:var(--student-muted);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.auth-logo strong{
    color:var(--student-dark);
    font-size:16px;
    font-weight:900;
}

.auth-form{
    display:grid;
    gap:12px;
}

.auth-field label{
    display:block;
    margin-bottom:7px;
}

.auth-input{
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #d9e2ef;
    border-radius:8px;
    background:#fff;
    padding:0 12px;
    transition:.2s ease;
}

.auth-input:focus-within{
    border-color:rgba(15,118,110,.72);
    box-shadow:0 0 0 4px rgba(15,118,110,.11);
}

.auth-input > i{
    color:var(--student-primary);
}

.auth-input input{
    flex:1;
    min-width:0;
    border:0 !important;
    padding:11px 0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

.auth-toggle-password{
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border:0;
    border-radius:8px;
    color:var(--student-muted);
    background:#f8fafc;
}

.auth-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    color:var(--student-muted);
    font-size:13px;
    font-weight:800;
}

.auth-options label{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    color:var(--student-muted);
    text-transform:none;
    letter-spacing:0;
}

.auth-submit{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:44px;
    border:0;
    border-radius:8px;
    color:#fff;
    background:linear-gradient(135deg,var(--student-primary),var(--student-success));
    font-weight:900;
    box-shadow:0 16px 28px rgba(15,118,110,.20);
}

.auth-submit:disabled{
    opacity:.75;
}

.auth-spin{
    animation:authSpin .8s linear infinite;
}

@keyframes authSpin{
    to{transform:rotate(360deg);}
}

.student-nav .navbar-collapse{
    margin-top:12px;
    padding:12px;
    border-radius:8px;
    background:rgba(15,118,110,.98);
    box-shadow:0 18px 45px rgba(15,23,42,.20);
}

.student-nav .navbar-nav{
    gap:6px;
}

.student-nav .dropdown-menu{
    position:static !important;
    width:100%;
    min-width:0;
    margin:6px 0 4px !important;
    box-shadow:none !important;
}

.student-dashboard{
    width:min(1080px,100%);
    margin:0 auto;
    padding:14px 12px 24px;
}

.dashboard-hero{
    display:grid;
    gap:14px;
    padding:18px;
    border-radius:8px;
    color:#fff;
    background:
        linear-gradient(135deg,rgba(15,118,110,.96),rgba(37,99,235,.82)),
        radial-gradient(circle at top right,rgba(255,255,255,.25),transparent 36%);
    box-shadow:0 18px 45px rgba(15,23,42,.18);
}

.dashboard-kicker{
    margin:0 0 6px;
    color:rgba(255,255,255,.78);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.dashboard-hero h1{
    margin:0;
    color:#fff;
    font-size:clamp(23px,7vw,36px);
    line-height:1.05;
    font-weight:900;
    letter-spacing:0;
}

.dashboard-hero p{
    margin:6px 0 0;
    color:rgba(255,255,255,.86);
    max-width:62ch;
}

.dashboard-hero-actions{
    display:grid;
    gap:10px;
}

.dashboard-hero-actions .btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
}

.dashboard-hero-actions .btn-outline-light{
    border:1px solid rgba(255,255,255,.48) !important;
    background:rgba(255,255,255,.12) !important;
    color:#fff !important;
}

.dashboard-grid{
    display:grid;
    gap:12px;
    margin-top:12px;
}

.profile-panel,
.metric-card,
.quick-actions{
    border:1px solid rgba(226,232,240,.96);
    border-radius:8px;
    background:rgba(255,255,255,.94);
    box-shadow:var(--student-shadow);
}

.profile-panel{
    padding:14px;
}

.profile-main{
    display:flex;
    align-items:center;
    gap:14px;
}

.student-passport{
    flex:0 0 auto;
    width:68px;
    height:68px;
    object-fit:cover;
    border-radius:8px;
    border:3px solid rgba(15,118,110,.18);
    box-shadow:0 14px 30px rgba(15,118,110,.18);
}

.profile-main h2{
    margin:0 0 8px;
    color:var(--student-dark);
    font-size:18px;
    font-weight:900;
    line-height:1.15;
}

.status-pill{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.status-success{
    background:#dcfce7;
    color:#14532d;
}

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

.profile-list{
    display:grid;
    gap:8px;
    margin-top:12px;
}

.profile-list div{
    display:grid;
    gap:3px;
    padding:11px 12px;
    border-radius:8px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
}

.profile-list span,
.metric-card span{
    color:var(--student-muted);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.profile-list strong{
    color:var(--student-dark);
    font-size:14px;
}

.metrics-grid{
    display:grid;
    gap:12px;
}

.metric-card{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:108px;
    padding:14px;
}

.metric-card .metric-icon{
    flex:0 0 auto;
    width:44px;
    height:44px;
    border-radius:8px;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:19px;
    box-shadow:0 14px 25px rgba(15,23,42,.16);
}

.metric-card strong{
    display:block;
    margin-top:4px;
    color:var(--student-dark);
    font-size:19px;
    font-weight:900;
    line-height:1.1;
}

.metric-card small{
    display:block;
    margin-top:6px;
    color:var(--student-muted) !important;
    font-weight:700;
}

.metric-payment .metric-icon{background:linear-gradient(135deg,var(--student-primary),var(--student-success));}
.metric-course .metric-icon{background:linear-gradient(135deg,#0891b2,#22c55e);}
.metric-gpa .metric-icon{background:linear-gradient(135deg,var(--student-accent),#38bdf8);}
.metric-cgpa .metric-icon{background:linear-gradient(135deg,#7c3aed,var(--student-accent));}

.quick-actions{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1px;
    overflow:hidden;
    margin-top:12px;
}

.quick-actions a{
    display:grid;
    place-items:center;
    gap:7px;
    min-height:74px;
    padding:10px 8px;
    color:var(--student-dark);
    text-decoration:none;
    background:#fff;
    font-size:12px;
    font-weight:900;
    text-align:center;
}

.quick-actions i{
    color:var(--student-primary);
    font-size:20px;
}

.quick-actions a:hover{
    color:var(--student-primary-dark);
    background:#f0fdfa;
}

@media (min-width:576px){
    .student-dashboard{
        padding:16px 16px 28px;
    }

    .dashboard-hero-actions{
        grid-template-columns:repeat(2,minmax(0,1fr));
        max-width:420px;
    }

    .metrics-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .auth-highlights{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (min-width:992px){
    .auth-shell{
        grid-template-columns:minmax(0,1fr) minmax(340px,.62fr);
        align-items:center;
        min-height:calc(100vh - 184px);
        padding:26px 24px 34px;
    }

    .auth-story{
        min-height:400px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        padding:30px;
    }

    .auth-card{
        padding:22px;
    }

    .student-nav .navbar-collapse{
        margin-top:0;
        padding:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
    }

    .student-nav .dropdown-menu{
        position:absolute !important;
        width:auto;
        box-shadow:0 22px 50px rgba(15,23,42,.16) !important;
    }

    .student-dashboard{
        padding:22px 20px 34px;
    }

    .dashboard-hero{
        grid-template-columns:1fr auto;
        align-items:end;
        padding:24px;
    }

    .dashboard-grid{
        grid-template-columns:320px 1fr;
        gap:14px;
        margin-top:14px;
    }

    .profile-panel{
        padding:16px;
    }

    .student-passport{
        width:96px;
        height:96px;
    }

    .quick-actions{
        grid-template-columns:repeat(6,1fr);
        margin-top:18px;
    }
}

.container{
    max-width:1180px;
}

.container.mt-4,
.container.my-5{
    margin-top:28px !important;
}

.container > h1:first-child,
.container > h2:first-child,
.container > h3:first-child,
.container > h4:first-child,
.container > .row:first-child h3:first-child,
.content > h1:first-child,
.content > h2:first-child,
.content > h3:first-child,
.content > h4:first-child{
    color:var(--student-dark);
    font-weight:800;
    letter-spacing:.1px;
}

.card,
.login-card,
.stat-card{
    overflow:visible;
    border:1px solid rgba(226,232,240,.96) !important;
    border-radius:8px !important;
    background:var(--student-surface) !important;
    box-shadow:var(--student-shadow) !important;
}

.card.bg-primary,
.stat-card.bg-primary{
    background:linear-gradient(135deg,var(--student-accent),#38bdf8) !important;
    color:#fff !important;
}

.card.bg-success,
.stat-card.bg-success{
    background:linear-gradient(135deg,var(--student-primary),var(--student-success)) !important;
    color:#fff !important;
}

.card.bg-info,
.stat-card.bg-info{
    background:linear-gradient(135deg,#0891b2,#22c55e) !important;
    color:#fff !important;
}

.card.bg-warning,
.stat-card.bg-warning{
    background:linear-gradient(135deg,var(--student-warning),#f97316) !important;
    color:#fff !important;
}

.card.bg-danger,
.stat-card.bg-danger{
    background:linear-gradient(135deg,var(--student-danger),#ef4444) !important;
    color:#fff !important;
}

.card.bg-dark,
.stat-card.bg-dark{
    background:linear-gradient(135deg,var(--student-dark),#334155) !important;
    color:#fff !important;
}

.card.text-white,
.stat-card.text-white,
.card.text-white h1,
.card.text-white h2,
.card.text-white h3,
.card.text-white h4,
.card.text-white h5,
.card.text-white h6,
.card.text-white p,
.stat-card.text-white h1,
.stat-card.text-white h2,
.stat-card.text-white h3,
.stat-card.text-white h4,
.stat-card.text-white h5,
.stat-card.text-white h6,
.stat-card.text-white p{
    color:#fff !important;
}

.login-card{
    padding:26px !important;
}

.login-card img{
    width:80px !important;
    height:80px;
    object-fit:cover;
    border-radius:16px;
    box-shadow:0 14px 30px rgba(15,118,110,.16);
}

.login-card h6,
.card h5,
.card h6,
.stat-card h6{
    color:var(--student-dark) !important;
    font-weight:800 !important;
}

.card-body{
    padding:22px !important;
}

.stat-card{
    position:relative;
    min-height:160px;
    padding:22px !important;
    transition:.2s ease;
}

.stat-card::after{
    content:"";
    position:absolute;
    top:-34px;
    right:-34px;
    width:112px;
    height:112px;
    border-radius:50%;
    background:rgba(15,118,110,.08);
}

.stat-card:hover{
    transform:translateY(-3px) !important;
    box-shadow:0 22px 50px rgba(15,23,42,.12) !important;
}

.stat-icon,
.dashboard-icon,
.icon-circle{
    width:54px !important;
    height:54px !important;
    border-radius:8px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 auto 14px !important;
    color:#fff !important;
    font-size:22px !important;
    box-shadow:0 12px 22px rgba(15,118,110,.20);
}

.icon-payment,
.btn-success{
    background:linear-gradient(135deg,var(--student-primary),var(--student-success)) !important;
}

.icon-course,
.btn-info{
    background:linear-gradient(135deg,#0891b2,#22c55e) !important;
}

.icon-gpa,
.btn-primary{
    background:linear-gradient(135deg,var(--student-accent),#38bdf8) !important;
}

.icon-cgpa{
    background:linear-gradient(135deg,#7c3aed,var(--student-accent)) !important;
}

.btn-warning{
    background:linear-gradient(135deg,var(--student-warning),#f97316) !important;
}

.btn-danger{
    background:linear-gradient(135deg,var(--student-danger),#ef4444) !important;
}

.badge.bg-success{
    background:var(--student-success) !important;
    color:#fff !important;
}

.badge.bg-primary{
    background:var(--student-accent) !important;
    color:#fff !important;
}

.badge.bg-info{
    background:#0891b2 !important;
    color:#fff !important;
}

.badge.bg-warning{
    background:var(--student-warning) !important;
    color:#111827 !important;
}

.badge.bg-danger{
    background:var(--student-danger) !important;
    color:#fff !important;
}

.btn,
.icon-btn{
    border:0 !important;
    border-radius:8px !important;
    padding:10px 16px !important;
    font-weight:800 !important;
    transition:.2s ease !important;
}

.icon-btn{
    width:100%;
    background:linear-gradient(135deg,var(--student-primary),var(--student-success)) !important;
}

.btn:hover,
.icon-btn:hover{
    transform:translateY(-1px) !important;
    box-shadow:0 12px 22px rgba(15,23,42,.14) !important;
}

.form-label,
label{
    color:var(--student-muted);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"]{
    border:1px solid #d9e2ef !important;
    border-radius:8px !important;
    padding:10px 12px !important;
    font-size:14px !important;
    box-shadow:none !important;
}

.form-floating > .form-control{
    padding-top:1.625rem !important;
    padding-bottom:.625rem !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus{
    border-color:rgba(15,118,110,.72) !important;
    box-shadow:0 0 0 4px rgba(15,118,110,.11) !important;
}

.form-floating i{
    position:absolute;
    right:14px;
    top:50%;
    z-index:2;
    color:var(--student-primary);
    transform:translateY(-50%);
}

.student-passport,
.passport-preview{
    width:118px !important;
    height:118px !important;
    object-fit:cover;
    border-radius:50% !important;
    border:4px solid #fff !important;
    box-shadow:0 0 0 1px var(--student-line),0 16px 30px rgba(15,23,42,.12) !important;
}

.badge,
.status-badge{
    padding:7px 11px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:800 !important;
}

.alert{
    border:0 !important;
    border-radius:8px !important;
    font-weight:700;
}

.table{
    border-color:var(--student-line) !important;
    border-radius:8px !important;
    font-size:14px;
}

.table thead{
    background:#111827 !important;
    color:#fff !important;
}

.table thead th{
    padding:14px 12px !important;
    border-color:#111827 !important;
    color:#fff !important;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
}

.table thead.table-success{
    background:#dcfce7 !important;
    color:#14532d !important;
}

.table thead.table-success th{
    background:#dcfce7 !important;
    border-color:#bbf7d0 !important;
    color:#14532d !important;
}

.table thead.table-light{
    background:#f8fafc !important;
    color:var(--student-dark) !important;
}

.table thead.table-light th{
    background:#f8fafc !important;
    border-color:var(--student-line) !important;
    color:var(--student-dark) !important;
}

.table thead.table-dark{
    background:#111827 !important;
    color:#fff !important;
}

.table thead.table-dark th{
    background:#111827 !important;
    border-color:#111827 !important;
    color:#fff !important;
}

.table tbody td{
    padding:13px 12px !important;
    border-color:#edf2f7 !important;
    vertical-align:middle !important;
}

.table tbody tr:hover{
    background:#f8fbff !important;
}

.table .table-success th,
.table .table-success td{
    background:#dcfce7 !important;
    color:#14532d !important;
}

.table .table-light th,
.table .table-light td{
    background:#f8fafc !important;
    color:var(--student-dark) !important;
}

.table-responsive{
    overflow-x:auto;
    border:1px solid var(--student-line);
    border-radius:8px;
    background:#fff;
}

.card > .table,
.card > table.table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
}

.progress{
    height:10px;
    border-radius:999px;
    background:#e2e8f0;
}

.progress-bar{
    background:linear-gradient(135deg,var(--student-primary),var(--student-success));
}

.modal-content{
    border:0 !important;
    border-radius:8px !important;
    box-shadow:var(--student-shadow) !important;
}

.modal.fade .modal-dialog{
    transform:translateY(24px) scale(.96);
    opacity:0;
    transition:transform .28s cubic-bezier(.16,1,.3,1), opacity .22s ease;
}

.modal.show .modal-dialog{
    transform:translateY(0) scale(1);
    opacity:1;
}

.modal.fade .modal-content{
    animation:dfsModalPop .32s cubic-bezier(.16,1,.3,1);
}

.modal-backdrop.show{
    animation:dfsModalBackdrop .22s ease both;
}

.dfs-animated-modal,
.swal2-popup{
    border:0 !important;
    border-radius:8px !important;
    box-shadow:0 24px 70px rgba(15,23,42,.22) !important;
}

.dfs-animated-modal.swal2-show,
.swal2-popup.swal2-show{
    animation:dfsModalPop .32s cubic-bezier(.16,1,.3,1) both !important;
}

.dfs-animated-modal.swal2-hide,
.swal2-popup.swal2-hide{
    animation:dfsModalOut .18s ease both !important;
}

.swal2-container.swal2-backdrop-show{
    animation:dfsModalBackdrop .22s ease both;
}

@keyframes dfsModalPop{
    from{opacity:0;transform:translateY(24px) scale(.94);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

@keyframes dfsModalOut{
    from{opacity:1;transform:translateY(0) scale(1);}
    to{opacity:0;transform:translateY(10px) scale(.98);}
}

@keyframes dfsModalBackdrop{
    from{opacity:0;}
    to{opacity:1;}
}

.portal-footer,
.footer,
.bg-success.text-white.mt-5.py-3{
    margin-top:24px !important;
    padding:16px 0 !important;
    color:var(--student-muted) !important;
    background:rgba(255,255,255,.9) !important;
    border-top:1px solid rgba(226,232,240,.9);
    box-shadow:0 -10px 24px rgba(15,23,42,.04);
}

.portal-footer-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}

.portal-footer strong{
    display:block;
    color:var(--student-dark);
    font-size:13px;
    line-height:1.35;
}

.portal-footer span{
    color:var(--student-muted);
    font-size:12px;
}

.portal-footer-links{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    font-size:12px;
    font-weight:900;
}

.portal-footer a,
.footer a,
.bg-success.text-white.mt-5.py-3 a{
    color:var(--student-primary-dark) !important;
    font-weight:900;
    text-decoration:none;
}

@media (min-width:992px){
    .navbar .dropdown:hover > .dropdown-menu{
        display:block;
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }
}

@media (max-width:991px){
    .top-header .container{
        min-height:64px;
    }

    .top-header img{
        width:48px !important;
        height:48px;
    }

    .school-title{
        font-size:14px;
        line-height:1.25;
    }

    .navbar-collapse{
        margin-top:12px;
        padding:12px;
        border-radius:8px;
        background:rgba(15,94,89,.98) !important;
        box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
    }

    .navbar .nav-link{
        justify-content:flex-start;
        width:100%;
    }

    .dropdown-menu{
        position:static !important;
        width:100%;
        min-width:0;
        margin-top:6px !important;
        box-shadow:none !important;
    }

    .container.mt-4,
    .container.my-5{
        margin-top:18px !important;
    }

    .card-body,
    .card.p-4,
    .card.p-3{
        padding:14px !important;
    }

    .row > [class*="col-"]{
        min-width:0;
    }
}

@media (max-width:575px){
    .container{
        padding-left:14px;
        padding-right:14px;
    }

    .card-body,
    .login-card{
        padding:18px !important;
    }

    .card.p-4,
    .card.p-3{
        padding:14px !important;
    }

    .d-flex:not(.navbar .d-flex):not(.top-header .d-flex):not(.portal-footer-inner):not(.auth-logo):not(.profile-main){
        min-width:0;
    }

    .d-flex.flex-wrap,
    .d-flex.flex-column,
    .d-flex.flex-md-row{
        align-items:stretch !important;
    }

    .btn,
    .form-control,
    .form-select{
        width:100%;
    }

    .table:not(.desktop-table){
        border:0 !important;
    }

    .table:not(.desktop-table) thead{
        display:none;
    }

    .table:not(.desktop-table) tbody,
    .table:not(.desktop-table) tr,
    .table:not(.desktop-table) td,
    .table:not(.desktop-table) th{
        display:block;
        width:100%;
    }

    .table:not(.desktop-table) tr{
        margin-bottom:12px;
        border:1px solid var(--student-line);
        border-radius:8px;
        background:#fff;
        box-shadow:0 10px 24px rgba(15,23,42,.05);
        overflow:hidden;
    }

    .table:not(.desktop-table) td,
    .table:not(.desktop-table) th{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        border:0 !important;
        border-bottom:1px solid #eef2f7 !important;
        padding:10px 12px !important;
        text-align:right;
    }

    .table:not(.desktop-table) td:last-child,
    .table:not(.desktop-table) th:last-child{
        border-bottom:0 !important;
    }

    .table:not(.desktop-table) td::before,
    .table:not(.desktop-table) th::before{
        content:attr(data-label);
        flex:0 0 44%;
        color:var(--student-muted);
        font-size:11px;
        font-weight:900;
        text-align:left;
        text-transform:uppercase;
        letter-spacing:.04em;
    }

    .table:not(.desktop-table) td:not([data-label])::before,
    .table:not(.desktop-table) th:not([data-label])::before{
        content:"";
        display:none;
    }

    .auth-story{
        padding:18px;
    }

    .auth-highlights{
        grid-template-columns:1fr;
    }

    .portal-footer-inner{
        align-items:flex-start;
        flex-direction:column;
    }

    .stat-card{
        min-height:auto;
    }

    .student-passport,
    .passport-preview{
        width:92px !important;
        height:92px !important;
    }

    h1,h2,h3,h4{
        font-size:20px !important;
    }
}

.student-dashboard .dashboard-hero h1{
    font-size:clamp(26px,8vw,44px) !important;
}

.student-dashboard .profile-panel .student-passport{
    width:78px !important;
    height:78px !important;
    border-radius:8px !important;
    border:3px solid rgba(15,118,110,.18) !important;
}

@media (min-width:992px){
    .student-dashboard .profile-panel .student-passport{
        width:96px !important;
        height:96px !important;
    }
}

@media print{
    .navbar,
    .top-header,
    .footer,
    .bg-success.text-white.mt-5.py-3{
        display:none !important;
    }

    body{
        background:#fff !important;
    }
}
