﻿        /* --- LAYOUT UTAMA --- */
        body {
            background-color: #f4f6f9;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* --- STYLING HEADER MIRIP MUSYRIF --- */
        .header-bg {
            background: linear-gradient(135deg, #12910e 0%, #09955f 100%);
            color: white;
            border-radius: 0 0 30px 30px;
            padding: 2rem 0 4rem 0;
            position: relative;
            overflow: hidden;
        }

        .header-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.1;
            background-image: radial-gradient(#fff 1px, transparent 1px);
            background-size: 20px 20px;
        }

        .profile-card {
            background: white;
            border-radius: 20px;
            padding: 1.5rem;
            margin-top: -3rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 1rem;
            border: 1px solid #e2e8f0;
        }

        .profile-img {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        /* --- STYLING MENU GRID --- */
        .card-menu {
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            height: 100%;
            border-radius: 15px;
            background-color: #fff;
        }

        .card-menu:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .icon-menu {
            font-size: 40px;
            margin-bottom: 15px;
        }

        .card-menu .card-body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        /* --- LOGIN CARD --- */
        .login-card {
            max-width: 400px;
            margin: 80px auto;
            padding: 30px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .role-badge {
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 5px;
        }

        /* --- WIDGET WARNA-WARNI (GRADASI ELEGAN) --- */

        /* 1. Widget Admin (Dark Grey Gradient) */
        .widget-admin {
            background: linear-gradient(135deg, #232526 0%, #414345 100%);
            color: white;
            border: none;
        }

        /* 2. Widget Kurikulum (Blue Gradient) */
        .widget-kurikulum {
            background: linear-gradient(135deg, #005C97 0%, #363795 100%);
            color: white;
            border: none;
        }

        /* 3. Widget Kesantrian (Orange/Red Gradient) */
        .widget-kesantrian {
            background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
            color: white;
            border: none;
        }

        /* 4. Widget Tahfizh (Teal Gradient) */
        .widget-tahfizh {
            background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
            color: white;
            border: none;
        }

        /* 5. Widget Musyrif (Emerald Gradient) */
        .widget-musyrif {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            color: white;
            border: none;
        }

        /* 6. Widget Kepala Sekolah (Premium Executive Look) */
        .kepsek-widget {
            background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
            color: white;
            border-radius: 15px;
            border: none;
            overflow: hidden;
            position: relative;
        }

        /* Efek Kilau/Glass pada Widget Kepsek */
        .kepsek-widget::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
            transform: skewX(-20deg) translateX(50px);
            pointer-events: none;
        }

        /* 7. Widget Guru */
        .guru-widget {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            border: none;
        }

        .guru-welcome {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            /* Green Fresh */
            color: white;
            padding: 25px;
        }

        .guru-stat-box {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 10px;
            text-align: center;
        }

        .schedule-row {
            border-bottom: 1px solid #eee;
            padding: 10px 0;
        }

        .schedule-row:last-child {
            border-bottom: none;
        }

        /* 8. Widget Pengawas */
        .widget-pengawas {
            background: linear-gradient(135deg, #1D976C 0%, #93F9B9 100%);
            color: #1a1a1a;
            border: none;
        }

        /* 9. Widget Perpustakaan (Library Blue) */
        .widget-perpus {
            background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
            color: white;
            border: none;
        }

        /* --- TYPOGRAPHY & BUTTONS --- */
        .welcome-text {
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .arabic-font {
            font-family: 'Amiri', serif;
        }

        .btn-glass {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            transition: all 0.3s;
        }

        .btn-glass:hover {
            background: rgba(255, 255, 255, 0.3);
            color: white;
            transform: translateY(-2px);
        }

        .agenda-badge {
            font-size: 0.85rem;
            font-weight: bold;
        }

        /* Custom Scrollbar */
        .custom-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .custom-scroll::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .custom-scroll::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        .custom-scroll::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Transparent Minimalist Scrollbar untuk Widget Gelap */
        .glass-scroll::-webkit-scrollbar {
            width: 4px;
        }

        .glass-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .glass-scroll::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .glass-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .icon-menu {
                font-size: 30px;
            }

            .role-badge {
                font-size: 0.7rem;
            }

            .login-card {
                margin: 40px auto;
                padding: 20px;
            }

            .kepsek-widget .border-end {
                border-right: none !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                padding-bottom: 1rem;
                margin-bottom: 1rem;
            }

            .guru-welcome {
                padding: 20px;
            }

            .widget-kurikulum .col-lg-7 {
                border-right: none !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                padding-bottom: 1rem;
                margin-bottom: 1rem;
            }
        }
