:root {
    --sidebar-width: 292px;
    --sidebar-collapsed: 88px;
    --primary: #2563eb;
    --navy: #0f172a;
    --gold: #f59e0b;
    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 10%, rgba(245,158,11,.22), transparent 25%),
        radial-gradient(circle at 90% 5%, rgba(37,99,235,.35), transparent 30%),
        linear-gradient(180deg, #07111f 0%, #0f172a 50%, #111827 100%);
    box-shadow: 16px 0 45px rgba(15,23,42,.20);
    transition: .25s ease;
}

.sidebar-brand {
    height: 88px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #2563eb);
    display: grid;
    place-items: center;
    font-size: 26px;
    flex: 0 0 auto;
    box-shadow: 0 12px 25px rgba(37,99,235,.25);
}

.brand-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-info span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    white-space: nowrap;
}

.sidebar-close {
    margin-left: auto;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-profile {
    margin: 4px 18px 18px;
    padding: 14px;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.profile-avatar,
.top-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sidebar-profile strong,
.sidebar-profile span {
    display: block;
    line-height: 1.2;
}

.sidebar-profile span {
    color: #cbd5e1;
    font-size: 12px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 14px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
}

.menu-label {
    padding: 16px 14px 7px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-link {
    width: 100%;
    border: 0;
    text-decoration: none;
    color: #dbeafe;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 16px;
    font-weight: 600;
    transition: .2s ease;
    position: relative;
}

.menu-link i:first-child {
    width: 24px;
    font-size: 18px;
    text-align: center;
}

.menu-link:hover,
.menu-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
    transform: translateX(4px);
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: -14px;
    width: 4px;
    height: 28px;
    border-radius: 20px;
    background: var(--gold);
}

.menu-dropdown .arrow {
    margin-left: auto;
    transition: .25s ease;
}

.menu-dropdown.open .arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    margin: 4px 0 10px 38px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.16);
}

.menu-dropdown.open .submenu {
    display: block;
}

.submenu a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 12px;
}

.submenu a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.sidebar-logout {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.sidebar-logout a {
    color: #fecaca;
    text-decoration: none;
    background: rgba(239,68,68,.14);
    padding: 13px 14px;
    border-radius: 17px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 700;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: .25s ease;
}

.topbar {
    height: 86px;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right,
.top-user-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar h5 {
    margin: 0;
    font-weight: 850;
}

.topbar span {
    color: var(--muted);
    font-size: 13px;
}

.top-icon {
    border: 0;
    width: 43px;
    height: 43px;
    border-radius: 15px;
    background: #eef2ff;
    color: #1e293b;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.quick-btn {
    text-decoration: none;
    border-radius: 15px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    gap: 8px;
    align-items: center;
    box-shadow: 0 12px 25px rgba(37,99,235,.22);
}

.quick-btn:hover {
    color: #fff;
}

.top-user-info {
    text-align: right;
}

.top-user-info strong,
.top-user-info span {
    display: block;
    line-height: 1.2;
}

.content-area {
    padding: 28px;
    padding-bottom: 90px;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed);
}

body.sidebar-collapsed .brand-info,
body.sidebar-collapsed .sidebar-profile div:not(.profile-avatar),
body.sidebar-collapsed .menu-label,
body.sidebar-collapsed .menu-link span,
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .arrow,
body.sidebar-collapsed .sidebar-logout span {
    display: none;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-profile {
    justify-content: center;
}

body.sidebar-collapsed .menu-link,
body.sidebar-collapsed .sidebar-logout a {
    justify-content: center;
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-105%);
        width: 292px;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15,23,42,.60);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        height: 76px;
        padding: 0 16px;
    }

    .top-user-info {
        display: none;
    }

    .content-area {
        padding: 18px;
        padding-bottom: 95px;
    }

    .mobile-bottom-nav {
        position: fixed;
        display: flex;
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: 66px;
        z-index: 1050;
        background: rgba(15,23,42,.96);
        border-radius: 24px;
        box-shadow: 0 16px 45px rgba(15,23,42,.25);
        justify-content: space-around;
        align-items: center;
    }

    .mobile-bottom-nav a {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        min-width: 58px;
    }

    .mobile-bottom-nav a i {
        font-size: 19px;
    }

    .mobile-bottom-nav a.active {
        color: #facc15;
    }
}
/* PREMIUM BLUE SIDEBAR OVERRIDE */

:root {
    --premium-blue-1: #020617;
    --premium-blue-2: #082f49;
    --premium-blue-3: #0f4c81;
    --premium-blue-4: #1d4ed8;
    --premium-cyan: #38bdf8;
    --premium-light: #e0f2fe;
}

.sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(56,189,248,.30), transparent 28%),
        radial-gradient(circle at 100% 20%, rgba(29,78,216,.42), transparent 30%),
        linear-gradient(180deg, #020617 0%, #082f49 42%, #0f172a 100%) !important;
    border-right: 1px solid rgba(125,211,252,.18);
    box-shadow: 18px 0 55px rgba(2,6,23,.35);
}

.brand-logo {
    background: linear-gradient(135deg, #38bdf8, #1d4ed8) !important;
    box-shadow: 0 14px 35px rgba(56,189,248,.35);
}

.brand-info h4 {
    color: #f8fafc;
    letter-spacing: .2px;
}

.brand-info span {
    color: #bae6fd;
}

.sidebar-profile {
    background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(29,78,216,.18));
    border: 1px solid rgba(125,211,252,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.profile-avatar,
.top-avatar {
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
    box-shadow: 0 10px 24px rgba(14,165,233,.35);
}

.menu-label {
    color: #7dd3fc;
}

.menu-link {
    color: #dff6ff;
    background: rgba(255,255,255,.035);
    border: 1px solid transparent;
}

.menu-link i:first-child {
    color: #7dd3fc;
}

.menu-link:hover,
.menu-link.active {
    background: linear-gradient(135deg, rgba(14,165,233,.25), rgba(29,78,216,.22));
    border-color: rgba(125,211,252,.25);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(14,165,233,.12);
}

.menu-link.active::before {
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    box-shadow: 0 0 18px rgba(56,189,248,.85);
}

.menu-dropdown.open > .menu-link {
    background: linear-gradient(135deg, rgba(14,165,233,.24), rgba(29,78,216,.20));
    border-color: rgba(125,211,252,.22);
}

/* Bullet submenu style */
.submenu {
    margin: 6px 0 12px 26px;
    padding: 8px 0 8px 18px;
    border-left: 1px dashed rgba(125,211,252,.45);
    position: relative;
}

.submenu a {
    position: relative;
    color: #bfdbfe;
    padding: 9px 12px 9px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
}

.submenu a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56,189,248,.9);
}

.submenu a:hover {
    background: rgba(56,189,248,.12);
    color: #ffffff;
    padding-left: 24px;
}

.sidebar-logout a {
    background: linear-gradient(135deg, rgba(239,68,68,.20), rgba(127,29,29,.22));
    border: 1px solid rgba(252,165,165,.20);
}

/* Premium Topbar */
.topbar {
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,246,255,.92)) !important;
    border-bottom: 1px solid rgba(147,197,253,.35);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.top-icon {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border: 1px solid rgba(147,197,253,.45);
}

.quick-btn {
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8) !important;
    box-shadow: 0 14px 30px rgba(37,99,235,.28);
}

/* Premium Dashboard */
.dashboard-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(56,189,248,.42), transparent 28%),
        radial-gradient(circle at 15% 20%, rgba(59,130,246,.30), transparent 24%),
        linear-gradient(135deg, #020617 0%, #082f49 48%, #1d4ed8 100%) !important;
    box-shadow: 0 28px 70px rgba(2,6,23,.28);
}

.hero-badge {
    background: rgba(56,189,248,.18);
    border: 1px solid rgba(125,211,252,.28);
    color: #e0f2fe;
}

.hero-btn {
    background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 18px 35px rgba(37,99,235,.35);
}

.stat-card.blue {
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
}

.stat-card.green {
    background: linear-gradient(135deg, #0891b2, #0f766e) !important;
}

.stat-card.orange {
    background: linear-gradient(135deg, #2563eb, #4338ca) !important;
}

.stat-card.purple {
    background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
}

.panel-card {
    border: 1px solid rgba(147,197,253,.30);
    box-shadow: 0 20px 55px rgba(15,23,42,.08);
}

.quick-grid a {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid rgba(147,197,253,.38);
}

.quick-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(37,99,235,.14);
}

.quick-grid a i {
    color: #0284c7;
}

/* Mobile bottom nav premium */
.mobile-bottom-nav {
    background:
        linear-gradient(135deg, #020617, #082f49) !important;
    border: 1px solid rgba(125,211,252,.18);
}

.mobile-bottom-nav a.active {
    color: #38bdf8 !important;
}
.master-img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb;
    display: block;
}

.student-table td:first-child {
    width: 70px;
}

.student-table img {
    max-width: 52px !important;
    max-height: 52px !important;
}
.student-profile-photo{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:20px;
    border:4px solid #e5e7eb;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.student-doc-photo{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:12px;
}

.student-table-photo{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:10px;
}
img{
   width:100%;
}
.content-area img{
   width:100%;
}