:root {
    --sidebar-width: 260px;
    --primary: #1a56db;
    --accent: #f59e0b;
    --dark: #111827;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
}

#wrapper {
    min-height: 100vh;
    display: flex;
}

#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.25s ease;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: #e5e7eb !important;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
    background: #374151 !important;
    color: #fff !important;
}

.sidebar-heading {
    background: #0f172a;
}

.sidebar-section {
    padding: 0.5rem 1.2rem 0.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-top: 0.5rem;
}

#page-content-wrapper {
    flex: 1;
    min-width: 0;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.success { border-left: 4px solid #10b981; }
.stat-card.info { border-left: 4px solid #3b82f6; }
.stat-card.warning { border-left: 4px solid #f59e0b; }
.stat-card.danger { border-left: 4px solid #ef4444; }

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4b5563;
    background: #f9fafb;
}

.badge { font-weight: 500; }

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        z-index: 1000;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}


/* EDU Shakti official branding */
.sidebar-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    display: inline-block;
    border-radius: 18px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.topbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.login-logo {
    width: 145px;
    height: 145px;
    object-fit: contain;
    border-radius: 26px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.id-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 2px;
    display: block;
    margin: 0 auto 5px;
}
@media (max-width: 768px) {
    .topbar-logo { width: 36px; height: 36px; }
    .login-logo { width: 125px; height: 125px; }
}

/* ==========================================================
   EDU Shakti - Light Orange Collapsible Sidebar
   ========================================================== */
:root {
    --sidebar-width: 270px;
    --sidebar-orange: #fff0df;
    --sidebar-orange-2: #ffe4c7;
    --sidebar-orange-hover: #ffd7ad;
    --sidebar-orange-border: #f3c38f;
    --sidebar-orange-text: #6f3b0b;
    --sidebar-orange-muted: #9a6330;
}

#sidebar-wrapper.sidebar-orange {
    width: var(--sidebar-width);
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: var(--sidebar-orange) !important;
    color: var(--sidebar-orange-text);
    border-right: 1px solid var(--sidebar-orange-border);
    box-shadow: 2px 0 12px rgba(111, 59, 11, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #e6b477 transparent;
}

#sidebar-wrapper.sidebar-orange::-webkit-scrollbar { width: 6px; }
#sidebar-wrapper.sidebar-orange::-webkit-scrollbar-thumb {
    background: #e6b477;
    border-radius: 8px;
}

#sidebar-wrapper.sidebar-orange .sidebar-heading {
    background: linear-gradient(180deg, #fff7ed 0%, var(--sidebar-orange) 100%);
    border-bottom: 1px solid var(--sidebar-orange-border);
}

#sidebar-wrapper.sidebar-orange .sidebar-logo {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 1px solid #f0c99c;
    box-shadow: 0 5px 15px rgba(111,59,11,.12);
}

.sidebar-brand-title {
    color: #1f4f9a !important;
    font-weight: 700;
}

.sidebar-powered {
    color: var(--sidebar-orange-muted) !important;
}

.sidebar-menu {
    padding: 8px 8px 18px;
}

#sidebar-wrapper.sidebar-orange .sidebar-link,
#sidebar-wrapper.sidebar-orange .sidebar-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    margin: 2px 0;
    padding: 9px 11px;
    background: transparent;
    color: var(--sidebar-orange-text) !important;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.25;
    text-align: left;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

#sidebar-wrapper.sidebar-orange .sidebar-link:hover,
#sidebar-wrapper.sidebar-orange .sidebar-group-toggle:hover,
#sidebar-wrapper.sidebar-orange .sidebar-link.active {
    background: var(--sidebar-orange-hover) !important;
    color: #5b2b00 !important;
}

#sidebar-wrapper.sidebar-orange .sidebar-link.active {
    font-weight: 700;
    box-shadow: inset 3px 0 0 #f08a24;
}

#sidebar-wrapper.sidebar-orange .sidebar-group-toggle {
    font-weight: 700;
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(243,195,143,.7);
    margin-top: 5px;
}

#sidebar-wrapper.sidebar-orange .sidebar-group-toggle > span {
    display: flex;
    align-items: center;
    min-width: 0;
}

#sidebar-wrapper.sidebar-orange .sidebar-chevron {
    transition: transform .2s ease;
    font-size: .75rem;
}

#sidebar-wrapper.sidebar-orange .sidebar-group-toggle:not(.open) .sidebar-chevron {
    transform: rotate(-90deg);
}

#sidebar-wrapper.sidebar-orange .sidebar-submenu {
    padding: 2px 0 5px 9px;
}

#sidebar-wrapper.sidebar-orange .sidebar-submenu .sidebar-link {
    font-size: .84rem;
    padding: 8px 10px 8px 14px;
}

@media (max-width: 768px) {
    #sidebar-wrapper.sidebar-orange {
        width: var(--sidebar-width);
        position: fixed;
        z-index: 1050;
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #wrapper.toggled #sidebar-wrapper.sidebar-orange {
        margin-left: 0;
    }
}
