/* ========================================================
   Sistem Pendataan Sekolah Inklusi & Siswa Berkebutuhan Khusus
   Style: Modern, Clean, Accessible, & Vibrant
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #e0e7ff;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* -------------------------------------------------
   Navbar Styles
   ------------------------------------------------- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
}

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

/* -------------------------------------------------
   Hero Section
   ------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 70px 0 90px 0;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(79, 70, 229, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(79, 70, 229, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a5f3fc;
    margin-bottom: 1.25rem;
}

/* -------------------------------------------------
   Stat Metric Cards
   ------------------------------------------------- */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.card-indigo::after { background-color: #4f46e5; }
.stat-card.card-cyan::after   { background-color: #06b6d4; }
.stat-card.card-emerald::after{ background-color: #10b981; }
.stat-card.card-amber::after  { background-color: #f59e0b; }

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-indigo  { background: #e0e7ff; color: #4338ca; }
.icon-cyan    { background: #cffafe; color: #0891b2; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber   { background: #fef3c7; color: #d97706; }
.icon-rose    { background: #ffe4e6; color: #e11d48; }

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    line-height: 1.1;
    margin: 6px 0;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* -------------------------------------------------
   Cards & Containers
   ------------------------------------------------- */
.custom-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.custom-card-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-card-body {
    padding: 24px;
}

/* -------------------------------------------------
   Buttons
   ------------------------------------------------- */
.btn-primary-custom {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-light-custom {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.btn-light-custom:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* -------------------------------------------------
   Badges Kategori & Status
   ------------------------------------------------- */
.badge-autism {
    background-color: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.badge-tunanetra {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-tunarungu {
    background-color: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.badge-tunadaksa {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-tunagrahita {
    background-color: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.badge-adhd {
    background-color: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-learning {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-kategori {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge {
    padding: 6px 12px;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* -------------------------------------------------
   Tables
   ------------------------------------------------- */
.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 14px 16px;
}

.table-custom tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

/* -------------------------------------------------
   School Portal Layout (Sidebar & Topbar)
   ------------------------------------------------- */
.portal-wrapper {
    display: flex;
    min-height: calc(100vh - 65px);
    position: relative;
}

.portal-sidebar {
    width: 275px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 20px 14px;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1020;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Slim Scrollbar for Sidebar */
.portal-sidebar::-webkit-scrollbar {
    width: 4px;
}
.portal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.portal-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
.portal-sidebar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.portal-content {
    flex-grow: 1;
    background-color: #f8fafc;
    padding: 28px 32px;
    overflow-x: hidden;
    min-width: 0;
}

/* Sidebar Profile Card */
.school-badge-card,
.admin-badge-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 12px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.school-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #06b6d4 100%);
}

.admin-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc2626 0%, #f43f5e 100%);
}

.sidebar-avatar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sidebar-menu-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.08em;
    padding: 12px 10px 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-menu-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.95rem;
    color: #64748b;
    background: #f8fafc;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background-color: #f8fafc;
    color: var(--primary);
    transform: translateX(3px);
}

.sidebar-link:hover .sidebar-icon-box {
    background-color: #e0e7ff;
    color: var(--primary);
}

.sidebar-link.active {
    background-color: #eef2ff;
    color: #4338ca;
    border-left-color: #4f46e5;
    font-weight: 700;
}

.sidebar-link.active .sidebar-icon-box {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Admin Link Customization */
.sidebar-link.admin-link:hover {
    background-color: #fff1f2;
    color: #dc2626;
    transform: translateX(3px);
}

.sidebar-link.admin-link:hover .sidebar-icon-box {
    background-color: #fee2e2;
    color: #dc2626;
}

.sidebar-link.admin-link.active {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left-color: #dc2626;
    font-weight: 700;
    box-shadow: none;
}

.sidebar-link.admin-link.active .sidebar-icon-box {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.sidebar-version-card {
    margin-top: auto;
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px dashed #e2e8f0;
}

/* -------------------------------------------------
   Form Styles
   ------------------------------------------------- */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* -------------------------------------------------
   Informative Login Page with SLB Background
   ------------------------------------------------- */
.login-hero-container {
    position: relative;
    min-height: calc(100vh - 72px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 50%, rgba(15, 23, 42, 0.92) 100%), 
                url('../img/bg_sekolah_slb.jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    padding: 44px 0;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.jenjang-info-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.25s ease;
}

.jenjang-info-box:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.demo-access-pill {
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.footer-custom {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0 24px 0;
    margin-top: auto;
    font-size: 0.875rem;
}

.footer-custom a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: #38bdf8;
}

/* -------------------------------------------------
   Mobile Responsive Sidebar Drawer
   ------------------------------------------------- */
@media (max-width: 991.98px) {
    .portal-wrapper {
        flex-direction: column;
    }
    
    .portal-sidebar {
        position: fixed;
        top: 0;
        left: -310px;
        width: 290px;
        height: 100vh;
        z-index: 1055;
        box-shadow: none;
        padding-top: 18px;
    }
    
    .portal-sidebar.show {
        left: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    }
    
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1050;
    }
    
    .sidebar-backdrop.show {
        display: block;
    }
    
    .portal-content {
        padding: 20px 14px;
    }
}

.stat-card.card-rose::after { background-color: #e11d48; }
.stat-card.card-purple::after { background-color: #9333ea; }


