/* ==========================================
   Q-TRACK MAIN STYLES: ROYAL FRESH EMERALD & CLEAN GLASS
   ========================================== */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #020817;
    background-image: 
        /* 1. Lukisan Panorama Angkasa Lepas Cakerawala */
        url('bg-cosmic-space.jpg'),
        /* 2. Cahaya Kubah Angkasa Emas & Biru Nilam */
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 10% 30%, rgba(0, 210, 255, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #020817 0%, #031432 50%, #010612 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #0f172a;
    min-height: 100vh;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* SAYAP GELANG ORBITAL KOSMIK DI MARGIN KIRI & KANAN (WIDESCREEN DESKTOP) */
@media (min-width: 1280px) {
    body::before {
        content: '';
        position: fixed;
        top: 90px;
        bottom: 80px;
        left: max(16px, calc(50% - 700px));
        width: 44px;
        pointer-events: none;
        z-index: 0;
        background: 
            radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.35) 0%, transparent 70%),
            radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.30) 0%, transparent 70%);
        border-right: 1.5px dashed rgba(0, 210, 255, 0.35);
        border-left: 2px solid rgba(251, 191, 36, 0.5);
        border-radius: 20px;
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.18);
    }

    body::after {
        content: '';
        position: fixed;
        top: 90px;
        bottom: 80px;
        right: max(16px, calc(50% - 700px));
        width: 44px;
        pointer-events: none;
        z-index: 0;
        background: 
            radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.35) 0%, transparent 70%),
            radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.30) 0%, transparent 70%);
        border-left: 1.5px dashed rgba(0, 210, 255, 0.35);
        border-right: 2px solid rgba(251, 191, 36, 0.5);
        border-radius: 20px;
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.18);
    }
}

/* OPTIMASI MESRA PERANTI & SEMBUNYIKAN SCROLLBAR */
html,
body {
    overflow-x: hidden;
    width: 100%;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Elak iOS Safari auto-zoom pada input & butang */
input,
select,
textarea,
button {
    touch-action: manipulation;
    font-size: 16px !important;
}

@media (min-width: 768px) {
    input,
    select,
    textarea,
    button {
        font-size: 14px !important;
    }
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

.islamic-font {
    font-family: 'Amiri', serif;
}

/* ==========================================================================
   TEMA ROYAL FRESH EMERALD & CLEAN CRYSTAL GLASS
   ========================================================================== */

/* 1. Navbar Utama (Hijau Zamrud Diraja dengan Trim Emas) */
nav {
    background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #065f46 100%) !important;
    border-bottom: 2.5px solid #f59e0b !important;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.35), 0 8px 10px -6px rgba(6, 78, 59, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
}

/* Tajuk Q-TRACK Emas 3D Timbul */
nav h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 40%, #fbbf24 85%, #d97706 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
    letter-spacing: -0.5px !important;
}

/* Ikon Al-Quran Kiri Berbingkai Emas */
#default-nav-icon-container {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(253, 230, 138, 0.9) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
}

/* Butang Navigasi (Live Chat, Peranan, Gelap, Refresh) */
nav button {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(6, 78, 59, 0.6) !important;
    border-radius: 30px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

nav button:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #fbbf24 !important;
    transform: translateY(-1.5px) !important;
}

/* 2. Kad Utama & Panel Kaca Kristal Putih Bersih (Tiada lagi kotak hitam/gelap bersarang!) */
/* ==========================================================================
   EFEK 3D TERAPUNG SIFAR GRAVITI & KACA KRISTAL DIRAJI (ZERO-GRAVITY 3D DEPTH)
   ========================================================================== */

@keyframes zeroGravityFloatMurid {
    0% {
        transform: perspective(1000px) translateY(0px) rotateX(0deg);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(2, 132, 199, 0.25);
    }
    50% {
        transform: perspective(1000px) translateY(-8px) rotateX(2.5deg);
        box-shadow: 0 26px 45px rgba(0, 0, 0, 0.55), 0 0 32px rgba(2, 132, 199, 0.45);
    }
    100% {
        transform: perspective(1000px) translateY(0px) rotateX(0deg);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(2, 132, 199, 0.25);
    }
}

@keyframes zeroGravityFloatKelas {
    0% {
        transform: perspective(1000px) translateY(-5px) rotateX(1.5deg);
        box-shadow: 0 20px 38px rgba(0, 0, 0, 0.5), 0 0 24px rgba(124, 58, 237, 0.3);
    }
    50% {
        transform: perspective(1000px) translateY(5px) rotateX(-2deg);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(124, 58, 237, 0.2);
    }
    100% {
        transform: perspective(1000px) translateY(-5px) rotateX(1.5deg);
        box-shadow: 0 20px 38px rgba(0, 0, 0, 0.5), 0 0 24px rgba(124, 58, 237, 0.3);
    }
}

@keyframes zeroGravityFloatRekod {
    0% {
        transform: perspective(1000px) translateY(2px) rotateX(-1deg);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: perspective(1000px) translateY(-7px) rotateX(2deg);
        box-shadow: 0 24px 42px rgba(0, 0, 0, 0.55), 0 0 35px rgba(245, 158, 11, 0.5);
    }
    100% {
        transform: perspective(1000px) translateY(2px) rotateX(-1deg);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 158, 11, 0.3);
    }
}

/* 2. Kad Utama & Panel Kaca Kristal Putih Bersih (Illuminated 3D Floating Pod) */
.glass-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
    border-top: 5px solid #059669 !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 
                0 0 35px rgba(0, 210, 255, 0.15),
                inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 22px;
    color: #0f172a !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

/* Header Tajuk Borang Input */
#header-input-title {
    color: #064e3b !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

#header-input-text {
    color: #064e3b !important;
    font-weight: 800 !important;
}

#header-input-icon {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1.5px solid #a7f3d0 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2) !important;
}

/* 3. Stat Cards 3-Grid (3D Zero-Gravity Floating Pods) */
.glass-card:has(#stat-murid) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    border-top: 4px solid #0284c7 !important;
    border-bottom: 3.5px solid #0284c7 !important;
    border-radius: 20px !important;
    animation: zeroGravityFloatMurid 6s ease-in-out infinite !important;
    will-change: transform, box-shadow;
}

.glass-card:has(#stat-kelas) {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
    border-top: 4px solid #7c3aed !important;
    border-bottom: 3.5px solid #7c3aed !important;
    border-radius: 20px !important;
    animation: zeroGravityFloatKelas 6.5s ease-in-out infinite !important;
    will-change: transform, box-shadow;
}

.glass-card:has(#stat-rekod) {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
    border-top: 4px solid #f59e0b !important;
    border-bottom: 3.5px solid #f59e0b !important;
    border-radius: 20px !important;
    animation: zeroGravityFloatRekod 7s ease-in-out infinite !important;
    will-change: transform, box-shadow;
}

.glass-card:has(#stat-murid):hover,
.glass-card:has(#stat-kelas):hover,
.glass-card:has(#stat-rekod):hover {
    animation-play-state: paused !important;
    transform: perspective(1000px) translateY(-12px) scale(1.04) rotateX(-2deg) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 210, 255, 0.45) !important;
    z-index: 20 !important;
}

#stat-murid {
    color: #0284c7 !important;
    font-weight: 900 !important;
    font-size: 1.85rem !important;
    text-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
#stat-kelas {
    color: #7c3aed !important;
    font-weight: 900 !important;
    font-size: 1.85rem !important;
    text-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
#stat-rekod {
    color: #d97706 !important;
    font-weight: 900 !important;
    font-size: 1.85rem !important;
    text-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.glass-card p {
    color: #475569 !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
}

/* 4. Tab Navigation Bar (Kapsul Biru Angkasa & Tab Aktif Zamrud) */
div:has(> .tab-btn) {
    background: rgba(3, 16, 38, 0.88) !important;
    border: 1.5px solid rgba(0, 210, 255, 0.3) !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    padding: 6px !important;
    backdrop-filter: blur(16px) !important;
}

.tab-btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tab-btn.active-tab {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
    border: none !important;
}

.tab-btn:not(.active-tab) {
    color: #cbd5e1 !important;
    background: transparent !important;
}

.tab-btn:not(.active-tab):hover {
    background: rgba(0, 210, 255, 0.16) !important;
    color: #67e8f9 !important;
}

/* 5. Mode Switcher Bar (Mod Borang Pantas vs Mod Jadual Matriks) */
#mode-switcher-bar {
    background: #0f172a !important;
    border-radius: 18px !important;
    padding: 5px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

#btn-mod-pantas {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35) !important;
}

#btn-mod-matriks {
    border-radius: 14px !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
}

#btn-mod-matriks:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* 6. Butang Umum (Kemasan Moden & Elegan) */
button:not(.tbl-act-btn):not(.gateway-btn-close):not(.gateway-cta-btn):not(.tab-btn),
.btn {
    border-radius: 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button:not(.tbl-act-btn):hover,
.btn:hover {
    transform: translateY(-1.5px) !important;
}

/* 7. Input, Select & Textarea (Bersih, Tajam & Selesa Dibaca) */
input,
select,
textarea {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-1px);
}

::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Dropdown Options (Memelihara Skema Warna Guru Dinamik) */
select option {
    background-color: #ffffff;
    /* Dikekalkan tanpa !important supaya warna guru (opt.style.color) berfungsi sepenuhnya */
    padding: 10px 14px;
    font-size: 14px;
}

select option:checked {
    background-color: #ecfdf5;
    font-weight: 800;
}

select optgroup {
    background-color: #f1f5f9;
    color: #059669;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 8px 10px;
}

/* Label Medan Borang (Hitam Slate Jelas & Berkontras Tinggi) */
#section-form label,
.glass-card label {
    color: #334155 !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
}

/* Kotak Carian Pantas */
#input-carian-pantas {
    background-color: #ffffff !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

#list-carian-pantas {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

#list-carian-pantas div:hover {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

/* Kad Info Sejarah Bacaan Terakhir */
#card-sejarah-bacaan {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08) !important;
}

#sejarah-tahap-terakhir {
    color: #064e3b !important;
    font-weight: 900 !important;
}

/* Bekas Muat Naik Bukti */
#div-upload-bukti {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 14px !important;
}

/* Lencana (Badges) */
span[class*="bg-"]:not(.gateway-brand-version):not(.gateway-eyebrow) {
    border-radius: 8px !important;
    font-weight: 800 !important;
}

/* 8. Banner Pemakluman (Amber Gold Elegan) */
#pemakluman-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 16px !important;
    color: #92400e !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08) !important;
}

#pemakluman-banner button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
}

/* 9. Butang Al-Quran Digital & Iqra Online Kapsul Mewah */
button[onclick="openQuran()"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 14px !important;
    color: #065f46 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08) !important;
}
button[onclick="openQuran()"] i {
    color: #059669 !important;
}
button[onclick="openQuran()"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
}
button[onclick="openQuran()"]:hover i {
    color: #ffffff !important;
}

button[onclick="openIqra()"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1.5px solid #bae6fd !important;
    border-radius: 14px !important;
    color: #0369a1 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08) !important;
}
button[onclick="openIqra()"] i {
    color: #0284c7 !important;
}
button[onclick="openIqra()"]:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
}
button[onclick="openIqra()"]:hover i {
    color: #ffffff !important;
}

/* 10. Pilihan Radio Biasa vs Khatam */
#wrap-alquran label {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
}
#wrap-alquran label:has(input:checked) {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15) !important;
}
#wrap-alquran label span {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* 11. Quick Tag Chips */
button[onclick^="tambahCatatanTag"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    color: #334155 !important;
    font-size: 11px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
button[onclick^="tambahCatatanTag"]:hover {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
    color: #064e3b !important;
}

/* 12. Grand CTA Button [ 💾 SIMPAN REKOD ] 3D Tactile Push-Down */
#tasmikForm button[type="submit"] {
    background: linear-gradient(180deg, #10b981 0%, #059669 55%, #047857 100%) !important;
    border: 1.5px solid #6ee7b7 !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    font-size: 16px !important;
    box-shadow: 
        0 6px 0 #064e3b, /* Ketebalan fizikal 3D bawah butang */
        0 14px 30px rgba(5, 150, 105, 0.55),
        inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transform: translateY(0);
}
#tasmikForm button[type="submit"]::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}
#tasmikForm button[type="submit"]:hover::after {
    transform: translateX(200%) rotate(30deg);
}
#tasmikForm button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 0 #064e3b, 
        0 18px 36px rgba(5, 150, 105, 0.7), 
        inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
}
#tasmikForm button[type="submit"]:active {
    transform: translateY(6px) !important; /* Efek ditekan ke dalam (Tactile push) */
    box-shadow: 
        0 0px 0 #064e3b, 
        0 4px 14px rgba(5, 150, 105, 0.4), 
        inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* ==========================================
   GAYA 3D TAB REKOD BACAAN TERKINI (DASHBOARD TABLE 3D DEPTH)
   ========================================== */

/* 1. Baris Jadual Terapung 3D pada Hover */
#table-body tr {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#table-body tr:hover {
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 50%, #f0fdf4 100%) !important;
    transform: scale(1.006) translateY(-2px) !important;
    box-shadow: 0 10px 24px -4px rgba(5, 150, 105, 0.16), 0 0 12px rgba(16, 185, 129, 0.12) !important;
    position: relative;
    z-index: 10;
}

/* 2. Butang Tindakan Mikro 3D (Chat, Edit, Padam) */
.tbl-act-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateY(0);
}

.tbl-act-btn:hover {
    transform: translateY(-2px) scale(1.12) !important;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.tbl-act-btn:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

/* 3. Butang [ 🛡️ Lihat Bukti ] 3D Terapung */
button[onclick^="paparBukti"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1.5px solid #10b981 !important;
    color: #065f46 !important;
    border-radius: 12px !important;
    box-shadow: 0 3.5px 0 #059669, 0 6px 14px rgba(5, 150, 105, 0.25) !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
    transform: translateY(0);
}

button[onclick^="paparBukti"]:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 5px 0 #047857, 0 10px 20px rgba(5, 150, 105, 0.35) !important;
}

button[onclick^="paparBukti"]:hover i {
    color: #ffffff !important;
}

button[onclick^="paparBukti"]:active {
    transform: translateY(3px) !important;
    box-shadow: 0 0 0 #047857, 0 2px 6px rgba(5, 150, 105, 0.2) !important;
}

/* 4. Butang [ 📊 Eksport Excel ] 3D Tactile */
button[onclick="exportDataKelasDashboard()"] {
    background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%) !important;
    border: 1.5px solid #6ee7b7 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 0 #064e3b, 0 8px 18px rgba(5, 150, 105, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.15s ease !important;
    transform: translateY(0);
}

button[onclick="exportDataKelasDashboard()"]:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 5.5px 0 #064e3b, 0 12px 24px rgba(5, 150, 105, 0.45) !important;
}

button[onclick="exportDataKelasDashboard()"]:active {
    transform: translateY(3.5px) !important;
    box-shadow: 0 0.5px 0 #064e3b, 0 3px 8px rgba(5, 150, 105, 0.3) !important;
}

/* 5. Avatar Murid dengan Lingkaran 3D Orbit */
#table-body img {
    border: 2px solid #34d399 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#table-body tr:hover img {
    transform: scale(1.18) rotate(4deg);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4) !important;
}

/* 6. Lencana Bacaan 3D Holographic Pill */
#table-body td:nth-child(4) span {
    display: inline-block;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.15s ease;
}

#table-body tr:hover td:nth-child(4) span {
    transform: scale(1.08);
}

/* 7. Butang Pagination 3D */
#btn-prev-dash,
#btn-next-dash {
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 2.5px 0 #cbd5e1, 0 3px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.15s ease !important;
}

#btn-prev-dash:hover:not(:disabled),
#btn-next-dash:hover:not(:disabled) {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 0 #cbd5e1, 0 6px 14px rgba(0, 0, 0, 0.12) !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

#btn-prev-dash:active:not(:disabled),
#btn-next-dash:active:not(:disabled) {
    transform: translateY(2px) !important;
    box-shadow: 0 0.5px 0 #cbd5e1 !important;
}

/* ==========================================================================
   8. SEMBUNYIKAN BEKAS MUAT NAIK BUKTI GAMBAR (PILIHAN)
   ========================================================================== */
#div-upload-bukti {
    display: none !important;
}

/* ==========================================================================
   9. POPUP MAKLUMAN TERKINI 3D (ZERO-GRAVITY GOLD CRYSTAL POD)
   ========================================================================== */
#modal-pemakluman-popup {
    perspective: 1200px;
    background: rgba(4, 11, 26, 0.78) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

#modal-pemakluman-popup .modal-makluman-3d {
    background: linear-gradient(150deg, #ffffff 0%, #fffdf9 40%, #fefce8 100%) !important;
    border-radius: 26px !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 
        0 0 0 1px rgba(254, 240, 138, 0.7),
        0 24px 60px -10px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(245, 158, 11, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.95) !important;
    transform-style: preserve-3d;
    animation: modal3dPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

/* Pancaran Luminous Emas di Bahagian Atas Modal */
#modal-pemakluman-popup .modal-makluman-3d::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #fef08a, #f59e0b, #d97706);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
    z-index: 5;
}

@keyframes modal3dPopIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) translateY(35px) rotateX(12deg) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1);
    }
}

/* Lencana Ikon Pembesar Suara 3D */
#modal-pemakluman-popup .modal-icon-badge-3d {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22), inset 0 2px 2px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    font-size: 1.4rem;
}

/* Kotak Kandungan Pengumuman 3D (Subtle Recessed Depth) */
#modal-pemakluman-popup .notice-box-3d {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 20px !important;
    box-shadow: inset 0 2px 5px rgba(217, 119, 6, 0.06), 0 6px 16px rgba(245, 158, 11, 0.1) !important;
    position: relative;
}

/* Butang Taktil 3D [ SAYA FAHAM ] (Penuh Tekanan & Kedalaman Fizikal) */
#modal-pemakluman-popup .btn-faham-3d {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    border: 1px solid #d97706 !important;
    border-radius: 14px !important;
    box-shadow: 
        0 4.5px 0 #b45309,
        0 10px 22px rgba(217, 119, 6, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#modal-pemakluman-popup .btn-faham-3d:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) !important;
    box-shadow: 
        0 6px 0 #92400e,
        0 14px 28px rgba(217, 119, 6, 0.55),
        inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}

#modal-pemakluman-popup .btn-faham-3d:active {
    transform: translateY(4.5px) !important;
    box-shadow: 
        0 0 0 #b45309,
        0 2px 6px rgba(217, 119, 6, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Butang Tutup 3D (X) */
#modal-pemakluman-popup .btn-close-modal-3d {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 1px #fff;
    cursor: pointer;
}

#modal-pemakluman-popup .btn-close-modal-3d:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

#modal-pemakluman-popup .btn-close-modal-3d:active {
    transform: rotate(90deg) scale(0.95);
}

/* ==========================================================================
   10. GAYA 3D TAB ANALISIS (ZERO-GRAVITY COMMAND DECK & 3D HUD CARDS)
   ========================================================================== */

/* 1. Bekas Utama Kad Kristal Analisis */
#section-analisis .card-analisis-deck-3d {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    border-radius: 28px !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.4), 
        0 0 35px rgba(59, 130, 246, 0.15), 
        inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
    position: relative;
    overflow: hidden;
}

#section-analisis .card-analisis-deck-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
    z-index: 5;
}

/* 2. Butang Tindakan Atas 3D (Rujukan Juz, Excel, Laporan PPD) */
.btn-analisis-act-3d {
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-analisis-juz {
    background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%) !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 3.5px 0 #064e3b, 0 8px 16px rgba(5, 150, 105, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-analisis-juz:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 #064e3b, 0 12px 22px rgba(5, 150, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-analisis-juz:active {
    transform: translateY(3.5px) !important;
    box-shadow: 0 0 0 #064e3b, 0 2px 6px rgba(5, 150, 105, 0.2) !important;
}

.btn-analisis-excel {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%) !important;
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 3.5px 0 #1e3a8a, 0 8px 16px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-analisis-excel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 #1e3a8a, 0 12px 22px rgba(37, 99, 235, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-analisis-excel:active {
    transform: translateY(3.5px) !important;
    box-shadow: 0 0 0 #1e3a8a, 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

.btn-analisis-ppd {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 60%, #6d28d9 100%) !important;
    border: 1px solid #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 3.5px 0 #4c1d95, 0 8px 16px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-analisis-ppd:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 #4c1d95, 0 12px 22px rgba(124, 58, 237, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-analisis-ppd:active {
    transform: translateY(3.5px) !important;
    box-shadow: 0 0 0 #4c1d95, 0 2px 6px rgba(124, 58, 237, 0.2) !important;
}

/* 3. Kad KPI 3D Zero-Gravity Float (Termasuk Kad Dinamik dalam Graf) */
#section-analisis .kpi-stat-3d,
#section-analisis [class*="shadow-[3px_3px_0px_#000000]"],
#section-analisis [class*="shadow-[4px_4px_0px_#000000]"],
#section-analisis [class*="shadow-[5px_5px_0px_#000000]"] {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.2), 
        0 0 16px rgba(59, 130, 246, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

#section-analisis .kpi-stat-3d:hover,
#section-analisis [class*="shadow-[3px_3px_0px_#000000]"]:hover,
#section-analisis [class*="shadow-[4px_4px_0px_#000000]"]:hover,
#section-analisis [class*="shadow-[5px_5px_0px_#000000]"]:hover {
    transform: translateY(-3.5px) scale(1.015) !important;
    box-shadow: 
        0 14px 32px -4px rgba(0, 0, 0, 0.28), 
        0 0 24px rgba(59, 130, 246, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* 4. Kad Kristal Analisis 3D (Carta & Leaderboard) */
#section-analisis .card-analisis-crystal-3d {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 
        0 10px 28px -6px rgba(0, 0, 0, 0.08), 
        0 0 15px rgba(59, 130, 246, 0.06), 
        inset 0 1px 1px #fff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#section-analisis .card-analisis-crystal-3d:hover {
    box-shadow: 
        0 16px 36px -6px rgba(0, 0, 0, 0.12), 
        0 0 22px rgba(59, 130, 246, 0.12), 
        inset 0 1px 1px #fff !important;
    transform: translateY(-2px);
}

/* 5. Modul Graf Trend Momentum 3D Deck */
#section-analisis .card-trend-deck-3d {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 40%, #eef2ff 100%) !important;
    border: 2px solid #c7d2fe !important;
    border-radius: 24px !important;
    box-shadow: 
        0 14px 36px -6px rgba(79, 70, 229, 0.16), 
        0 0 25px rgba(99, 102, 241, 0.1), 
        inset 0 2px 2px #fff !important;
    position: relative;
    overflow: hidden;
}

#section-analisis .card-trend-deck-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #38bdf8, #818cf8);
}

/* Kanvas Graf Garis Besar (Crisp Hologram Frame) */
#section-analisis .card-trend-deck-3d .relative[style*="height: 320px"] {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1.5px solid #c7d2fe !important;
    border-radius: 18px !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(99, 102, 241, 0.06) !important;
}

/* 6. Penapis Utama Analisis 3D */
#section-analisis .filter-bar-analisis-3d {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.85) 0%, rgba(239, 246, 255, 0.85) 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.1), inset 0 1px 2px #fff !important;
}

/* 7. Widget Kiraan Julat 3D HUD Counter Pod */
#section-analisis .julat-widget-3d {
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%) !important;
    border: 1.5px solid #c7d2fe !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.15), inset 0 1px 2px #fff !important;
}

#section-analisis .julat-keputusan-badge-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%) !important;
    border: 2px solid #818cf8 !important;
    border-radius: 18px !important;
    box-shadow: 
        0 6px 16px rgba(79, 70, 229, 0.18), 
        inset 0 1px 2px #fff !important;
    position: relative;
    overflow: hidden;
}

#section-analisis .julat-keputusan-badge-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* 8. Jadual Analisis Murid 3D Elevation & Hologram Badges */
#table-analisis tr {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#table-analisis tr:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 50%, #f0fdf4 100%) !important;
    transform: scale(1.006) translateY(-2px) !important;
    box-shadow: 0 10px 24px -4px rgba(59, 130, 246, 0.16), 0 0 12px rgba(16, 185, 129, 0.12) !important;
    position: relative;
    z-index: 10;
}

#table-analisis td:nth-child(2) span {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    font-weight: 800 !important;
}

#table-analisis td:nth-child(4) span {
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

/* 9. Butang Pagination 3D Tab Analisis */
#btn-prev-analisis,
#btn-next-analisis {
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 2.5px 0 #cbd5e1, 0 3px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.15s ease !important;
}

#btn-prev-analisis:hover:not(:disabled),
#btn-next-analisis:hover:not(:disabled) {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 0 #cbd5e1, 0 6px 14px rgba(0, 0, 0, 0.12) !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

#btn-prev-analisis:active:not(:disabled),
#btn-next-analisis:active:not(:disabled) {
    transform: translateY(2px) !important;
    box-shadow: 0 0.5px 0 #cbd5e1 !important;
}

/* ==========================================================================
   11. GAYA 3D POPUP MODAL DRILLDOWN ANALISIS & LEADERBOARD (ZERO-GRAVITY POD)
   ========================================================================== */

/* 1. Bekas Utama Kad Modal 3D */
#modal-drilldown-analisis {
    z-index: 99990 !important;
    perspective: 1200px;
    background: rgba(4, 11, 26, 0.82) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

#modal-drilldown-analisis .drilldown-modal-container-3d {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid rgba(251, 191, 36, 0.5) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 0 0 1px rgba(254, 240, 138, 0.6),
        0 25px 65px -10px rgba(0, 0, 0, 0.65), 
        0 0 40px rgba(99, 102, 241, 0.25), 
        inset 0 2px 4px rgba(255, 255, 255, 0.95) !important;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: modal3dPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pancaran Luminous Emas di Atas Header Drilldown */
#modal-drilldown-analisis .drilldown-modal-container-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #fef08a, #00d2ff, #f59e0b);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
    z-index: 20;
}

/* Lencana Ikon Header 3D */
.drilldown-icon-badge-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* Lencana Kiraan Rekod 3D */
.drilldown-count-pill-3d {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
    border: 1px solid #d97706 !important;
    color: #451a03 !important;
    box-shadow: 0 2.5px 0 #b45309, 0 4px 10px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    letter-spacing: 0.5px;
}

/* Butang Tutup (X) 3D */
.btn-close-drilldown-3d {
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}
.btn-close-drilldown-3d:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: rotate(90deg) scale(1.12);
}
.btn-close-drilldown-3d:active {
    transform: rotate(90deg) scale(0.95);
}

/* Butang Excel & Salin 3D */
.btn-drilldown-excel-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%) !important;
    border: 1px solid #047857 !important;
    box-shadow: 0 3px 0 #064e3b, 0 6px 14px rgba(5, 150, 105, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.15s ease !important;
}
.btn-drilldown-excel-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4.5px 0 #064e3b, 0 8px 18px rgba(5, 150, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-drilldown-excel-3d:active {
    transform: translateY(3px) !important;
    box-shadow: 0 0 0 #064e3b, 0 2px 4px rgba(5, 150, 105, 0.2) !important;
}

.btn-drilldown-salin-3d {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%) !important;
    border: 1px solid #d97706 !important;
    box-shadow: 0 3px 0 #b45309, 0 6px 14px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.15s ease !important;
}
.btn-drilldown-salin-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4.5px 0 #b45309, 0 8px 18px rgba(217, 119, 6, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-drilldown-salin-3d:active {
    transform: translateY(3px) !important;
    box-shadow: 0 0 0 #b45309, 0 2px 4px rgba(217, 119, 6, 0.2) !important;
}

/* 2. Kad Baris Data Drilldown 3D (*Interactive Elevation Cards*) */
.drilldown-item-card-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.05), inset 0 1px 1px #fff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateY(0);
}

.drilldown-item-card-3d:hover {
    transform: translateY(-2.5px) scale(1.008) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%) !important;
    border-color: #93c5fd !important;
    box-shadow: 
        0 10px 24px -4px rgba(59, 130, 246, 0.18), 
        0 0 14px rgba(99, 102, 241, 0.12),
        inset 0 1px 1px #fff !important;
}

/* Lencana Nombor Indeks 3D */
.drilldown-index-badge-3d {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 1px #fff !important;
}

/* Lencana Pil 3D (Rumah & Sekolah) */
.drilldown-pill-blue-3d {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.12), inset 0 1px 1px #fff !important;
}

.drilldown-pill-emerald-3d {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    box-shadow: 0 2px 5px rgba(5, 150, 105, 0.12), inset 0 1px 1px #fff !important;
}

.drilldown-pill-amber-3d {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 1px solid #fcd34d !important;
    color: #92400e !important;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.15), inset 0 1px 1px #fff !important;
}

/* Kad Khatam Emas 3D */
.card-khatam-gold-3d {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1.5px solid #fbbf24 !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15), inset 0 1px 2px #fff !important;
}

/* Butang Bukti Gambar 3D */
.btn-drilldown-bukti-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #047857 !important;
    box-shadow: 0 2.5px 0 #064e3b, 0 4px 8px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.15s ease !important;
}
.btn-drilldown-bukti-3d:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 3.5px 0 #064e3b, 0 6px 12px rgba(5, 150, 105, 0.35) !important;
}
.btn-drilldown-bukti-3d:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #064e3b !important;
}

/* Butang Tutup Footer 3D */
.btn-drilldown-close-footer-3d {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 2.5px 0 #94a3b8, 0 4px 8px rgba(0, 0, 0, 0.06), inset 0 1px 1px #fff !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}
.btn-drilldown-close-footer-3d:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1.5px);
    box-shadow: 0 3.5px 0 #94a3b8, 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}
.btn-drilldown-close-footer-3d:active {
    transform: translateY(2.5px);
    box-shadow: 0 0 0 #94a3b8 !important;
}

        /* ==========================================
           PENGECUALIAN MOD JADUAL MATRIKS (EXECUTIVE SPREADSHEET LOOK)
           ========================================== */
        #view-matrix-grid * {
            box-shadow: none !important;
        }

        #view-matrix-grid table {
            border-collapse: separate !important;
            border-spacing: 0 !important;
            border: 1.5px solid #cbd5e1 !important;
            border-radius: 12px !important;
            overflow: visible !important;
            background: #ffffff !important;
            width: 100% !important;
        }

        #view-matrix-grid thead tr {
            background-color: #f1f5f9 !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }

        #view-matrix-grid tbody tr,
        #view-matrix-grid tbody tr.bg-white,
        #view-matrix-grid tbody tr.glass-card,
        #view-matrix-grid tbody tr[class*="bg-"] {
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: 1px solid #e2e8f0 !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            margin-bottom: 0 !important;
            backdrop-filter: none !important;
        }

        .matrix-table-container {
            max-height: 75vh !important;
            overflow: auto !important;
            position: relative !important;
            -webkit-overflow-scrolling: touch !important;
        }

        #view-matrix-grid table thead {
            position: sticky !important;
            top: 0 !important;
            z-index: 35 !important;
        }

        #view-matrix-grid table thead th {
            position: sticky !important;
            top: 0 !important;
            z-index: 35 !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        }

        body:not(.dark-mode) #view-matrix-grid table thead th {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }

        body.dark-mode #view-matrix-grid table thead th {
            background-color: #0f172a !important;
            color: #ffffff !important;
        }

        /* --------------------------------------------------
           PEMAKSAAN LAJUR BERGANDA (BIL & NAMA MURID & REKOD TERKINI) STICKY LEFT
           -------------------------------------------------- */
        #view-matrix-grid table th:first-child,
        #view-matrix-grid table td:first-child {
            position: sticky !important;
            left: 0 !important;
            width: 220px !important;
            min-width: 220px !important;
            max-width: 220px !important;
            z-index: 30 !important;
            border-right: 1px solid #cbd5e1 !important;
            padding-left: 10px !important;
            padding-right: 8px !important;
        }

        #view-matrix-grid table th:nth-child(2),
        #view-matrix-grid table td:nth-child(2) {
            position: sticky !important;
            left: 220px !important;
            width: 115px !important;
            min-width: 115px !important;
            max-width: 115px !important;
            z-index: 30 !important;
            box-shadow: 4px 0 8px -2px rgba(0,0,0,0.15) !important; /* Bayangan pemisah lajur */
            border-right: 3px solid #0f766e !important; /* Garisan pemisah hijau padu tebal */
            padding-left: 4px !important;
            padding-right: 4px !important;
        }

        /* Background legap supaya teks skrol tidak nampak di belakang */
        body:not(.dark-mode) #view-matrix-grid table td:first-child {
            background-color: #ffffff !important;
        }

        body:not(.dark-mode) #view-matrix-grid table td:nth-child(2) {
            background-color: #ecfdf5 !important; /* Soft Emerald Background */
        }

        body.dark-mode #view-matrix-grid table td:first-child {
            background-color: #1e293b !important;
        }

        body.dark-mode #view-matrix-grid table td:nth-child(2) {
            background-color: #064e3b !important;
        }

        /* Bucu Atas Kiri (Intersection Sticky Top & Left) */
        #view-matrix-grid table thead th:first-child {
            position: sticky !important;
            top: 0 !important;
            left: 0 !important;
            z-index: 50 !important;
            width: 220px !important;
            min-width: 220px !important;
            max-width: 220px !important;
            border-right: 1px solid #cbd5e1 !important;
        }

        #view-matrix-grid table thead th:nth-child(2) {
            position: sticky !important;
            top: 0 !important;
            left: 220px !important;
            z-index: 50 !important;
            width: 115px !important;
            min-width: 115px !important;
            max-width: 115px !important;
            border-right: 3px solid #0f766e !important;
        }

        body:not(.dark-mode) #view-matrix-grid table thead th:first-child,
        body:not(.dark-mode) #view-matrix-grid table thead th:nth-child(2) {
            background-color: #d1fae5 !important;
            color: #064e3b !important;
        }

        body.dark-mode #view-matrix-grid table thead th:first-child,
        body.dark-mode #view-matrix-grid table thead th:nth-child(2) {
            background-color: #064e3b !important;
            color: #ffffff !important;
        }

        /* --------------------------------------------------
           MOD SPREADSHEET PENUH & ZOOM
           -------------------------------------------------- */
        .matrix-table-container {
            touch-action: pan-x pan-y pinch-zoom !important;
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }

        .matrix-table-container table {
            min-width: 1550px !important;
        }

        /* --------------------------------------------------
           PENYESUAIAN KHAS MOD POTRET TELEFON BIMBIT (< 768px)
           -------------------------------------------------- */
        @media (max-width: 768px) and (orientation: portrait) {
            #view-matrix-grid:not(.matrix-fullscreen-active) table th:first-child,
            #view-matrix-grid:not(.matrix-fullscreen-active) table td:first-child,
            #view-matrix-grid:not(.matrix-fullscreen-active) table thead th:first-child {
                width: 135px !important;
                min-width: 135px !important;
                max-width: 135px !important;
                padding-left: 6px !important;
                padding-right: 4px !important;
                font-size: 11px !important;
            }

            #view-matrix-grid:not(.matrix-fullscreen-active) table th:nth-child(2),
            #view-matrix-grid:not(.matrix-fullscreen-active) table td:nth-child(2),
            #view-matrix-grid:not(.matrix-fullscreen-active) table thead th:nth-child(2) {
                left: 135px !important;
                width: 90px !important;
                min-width: 90px !important;
                max-width: 90px !important;
                padding-left: 2px !important;
                padding-right: 2px !important;
                font-size: 9.5px !important;
            }
        }

        /* --------------------------------------------------
           MOD SKRIN PENUH & LANSKAP MATRIKS (FULLSCREEN OVERLAY)
           -------------------------------------------------- */
        #view-matrix-grid.matrix-fullscreen-active {
            position: fixed !important;
            inset: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 99999 !important;
            background-color: #f8fafc !important;
            padding: 8px !important;
            overflow-y: auto !important;
            box-sizing: border-box !important;
            margin: 0 !important;
        }

        body.dark-mode #view-matrix-grid.matrix-fullscreen-active {
            background-color: #090d16 !important;
        }

        #view-matrix-grid.matrix-fullscreen-active .matrix-table-container {
            max-height: calc(100vh - 120px) !important;
            height: calc(100vh - 120px) !important;
        }

        /* Butang Apung Keluar Skrin Penuh (Diselaraskan agar kemas dan tidak menghalang jadual) */
        .btn-matrix-floating-exit {
            display: none !important;
        }

        /* Sticky Row Baris Guru Tasmik */
        #view-matrix-grid table tr.matrix-guru-header td {
            position: sticky !important;
            top: 36px !important;
            z-index: 30 !important;
        }

        #view-matrix-grid td {
            border-right: 1px solid #e2e8f0 !important;
            border-bottom: 1px solid #e2e8f0 !important;
            vertical-align: middle !important;
            padding: 5px 6px !important;
        }

        #view-matrix-grid th:last-child,
        #view-matrix-grid td:last-child {
            border-right: none !important;
        }

        #view-matrix-grid input,
        #view-matrix-grid select {
            border: 1px solid #cbd5e1 !important;
            border-radius: 6px !important;
            background-color: #ffffff !important;
            font-size: 12px !important;
        }

        #view-matrix-grid input:focus,
        #view-matrix-grid select:focus {
            border-color: #10b981 !important;
            outline: 2px solid #10b981 !important;
            outline-offset: -1px !important;
        }

        #view-matrix-grid button {
            border: none !important;
            border-radius: 6px !important;
        }

        #view-matrix-grid span[class*="bg-"] {
            border: none !important;
            border-radius: 20px !important;
        }

        /* ==========================================
           PENGESANAN KURSOR & BARIS AKTIF (ROW HIGHLIGHT & ACTIVE FOCUS)
           ========================================== */
        #view-matrix-grid table tbody tr {
            transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
            cursor: pointer;
        }

        #view-matrix-grid table tbody tr td:first-child {
            transition: background-color 0.15s ease, border-left 0.15s ease, color 0.15s ease !important;
        }

        /* 1. HOVER HIGHLIGHT (KURSOR DIHALAKAN KE BARIS MURID) - LIGHT MODE */
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover {
            background-color: #fef9c3 !important; /* Soft Canary Yellow Glow */
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td {
            background-color: #fef9c3 !important;
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td:first-child {
            background-color: #fef08a !important; /* Vivid Light Amber */
            border-left: 5px solid #059669 !important; /* Emerald Indicator Pin */
            color: #064e3b !important;
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td:nth-child(2) {
            background-color: #dcfce7 !important;
        }

        /* 2. ACTIVE / FOCUS HIGHLIGHT (SEDANG MENGISI INPUT / KLIK PADA BARIS) - LIGHT MODE */
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within,
        body:not(.dark-mode) #view-matrix-grid table tbody tr.matrix-row-active {
            background-color: #fef3c7 !important; /* Warm Amber Active */
            box-shadow: inset 0 0 0 1.5px #f59e0b !important;
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td,
        body:not(.dark-mode) #view-matrix-grid table tbody tr.matrix-row-active td {
            background-color: #fef3c7 !important;
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td:first-child,
        body:not(.dark-mode) #view-matrix-grid table tbody tr.matrix-row-active td:first-child {
            background-color: #fde047 !important; /* Bright Gold Accent */
            border-left: 6px solid #d97706 !important; /* Prominent Amber Bar */
            color: #78350f !important;
            font-weight: 900 !important;
        }
        body:not(.dark-mode) #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td:nth-child(2),
        body:not(.dark-mode) #view-matrix-grid table tbody tr.matrix-row-active td:nth-child(2) {
            background-color: #fef08a !important;
        }

        /* 3. HOVER HIGHLIGHT - DARK MODE */
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover {
            background-color: #334155 !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td {
            background-color: #334155 !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td:first-child {
            background-color: #1e293b !important;
            border-left: 5px solid #10b981 !important;
            color: #f8fafc !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):hover td:nth-child(2) {
            background-color: #064e3b !important;
        }

        /* 4. ACTIVE / FOCUS HIGHLIGHT - DARK MODE */
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within,
        body.dark-mode #view-matrix-grid table tbody tr.matrix-row-active {
            background-color: #0f172a !important;
            box-shadow: inset 0 0 0 1.5px #38bdf8 !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td,
        body.dark-mode #view-matrix-grid table tbody tr.matrix-row-active td {
            background-color: #0f172a !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td:first-child,
        body.dark-mode #view-matrix-grid table tbody tr.matrix-row-active td:first-child {
            background-color: #1e3a8a !important;
            border-left: 6px solid #38bdf8 !important;
            color: #ffffff !important;
            font-weight: 900 !important;
        }
        body.dark-mode #view-matrix-grid table tbody tr:not(.matrix-guru-header):focus-within td:nth-child(2),
        body.dark-mode #view-matrix-grid table tbody tr.matrix-row-active td:nth-child(2) {
            background-color: #0c4a6e !important;
        }

        /* ==========================================
           1. MOD CERAH (LIGHT MODE) - KONTRAST MAKSIMUM (100% JELAS & TAJAM)
           ========================================== */
        body:not(.dark-mode) #view-matrix-grid table {
            background-color: #ffffff !important;
            border-color: #cbd5e1 !important;
            color: #0f172a !important;
        }

        body:not(.dark-mode) #view-matrix-grid thead tr {
            background-color: #f1f5f9 !important;
            border-bottom-color: #94a3b8 !important;
        }

        body:not(.dark-mode) #view-matrix-grid th {
            color: #0f172a !important;
            border-color: #cbd5e1 !important;
            background-color: #f1f5f9 !important;
            font-weight: 800 !important;
        }

        body:not(.dark-mode) #view-matrix-grid td {
            border-color: #e2e8f0 !important;
            color: #0f172a !important;
        }

        /* Murid & Teks dalam Light Mode */
        body:not(.dark-mode) #view-matrix-grid td,
        body:not(.dark-mode) #view-matrix-grid td span,
        body:not(.dark-mode) #view-matrix-grid td div {
            color: #0f172a !important;
        }

        /* Tarikh Sejarah Dalam Light Mode (Warna Gelap Tajam, BUKAN Kuning/Oren!) */
        body:not(.dark-mode) #view-matrix-grid .matrix-date-past {
            color: #047857 !important; /* Deep Emerald Green */
            font-weight: 800 !important;
        }

        body:not(.dark-mode) #view-matrix-grid .matrix-ms-past {
            color: #0f172a !important; /* Solid Slate Black */
            font-weight: 900 !important;
        }

        body:not(.dark-mode) #view-matrix-grid .matrix-iqra-past {
            color: #1d4ed8 !important; /* Deep Royal Blue */
            font-weight: 800 !important;
        }

        body:not(.dark-mode) #view-matrix-grid .matrix-khatam-past {
            color: #be185d !important; /* Deep Pink */
            font-weight: 900 !important;
        }

        /* Input & Select Dalam Light Mode */
        body:not(.dark-mode) #view-matrix-grid input,
        body:not(.dark-mode) #view-matrix-grid select,
        body:not(.dark-mode) #matrix-grid-select-guru,
        body:not(.dark-mode) #matrix-tarikh-input,
        body:not(.dark-mode) #matrix-kelas-select {
            background-color: #ffffff !important;
            color: #0f172a !important;
            border-color: #94a3b8 !important;
            font-weight: 700 !important;
        }

        /* ==========================================
           2. MOD GELAP (DARK MODE) - KONTRAST MAKSIMUM (100% JELAS & TAJAM)
           ========================================== */
        body.dark-mode #view-matrix-grid table {
            background-color: #1e293b !important;
            border-color: #475569 !important;
            color: #ffffff !important;
        }

        body.dark-mode #view-matrix-grid thead tr {
            background-color: #0f172a !important;
            border-bottom-color: #64748b !important;
        }

        body.dark-mode #view-matrix-grid th {
            color: #f8fafc !important;
            border-color: #475569 !important;
            background-color: #0f172a !important;
            font-size: 11.5px !important;
        }

        body.dark-mode #view-matrix-grid td {
            border-color: #334155 !important;
            color: #ffffff !important;
        }

        /* MEMATIKAN OVERLAY KELABU MEMUTIH DALAM MOD GELAP */
        body.dark-mode #view-matrix-grid td[class*="bg-slate-50"],
        body.dark-mode #view-matrix-grid td[class*="bg-emerald-50"],
        body.dark-mode #view-matrix-grid td[class*="bg-emerald-100"] {
            background-color: rgba(15, 23, 42, 0.4) !important;
        }

        body.dark-mode #view-matrix-grid td:nth-child(9) { /* REKOD TERKINI (-1) */
            background-color: rgba(6, 78, 59, 0.5) !important; /* Deep Dark Emerald for Latest Record */
        }

        body.dark-mode #view-matrix-grid tbody tr {
            background-color: #1e293b !important;
            border-bottom: 1px solid #334155 !important;
        }

        body.dark-mode #view-matrix-grid tbody tr:nth-child(even) {
            background-color: #182232 !important;
        }

        body.dark-mode #view-matrix-grid tbody tr:hover {
            background-color: #334155 !important;
        }

        /* Tarikh Sejarah Dalam Dark Mode (Kuning Amber Emas Menyala) */
        body.dark-mode #view-matrix-grid .matrix-date-past {
            color: #fbbf24 !important; /* Bright Amber Gold */
            font-weight: 800 !important;
        }

        body.dark-mode #view-matrix-grid .matrix-ms-past {
            color: #ffffff !important; /* Pure White */
            font-weight: 900 !important;
        }

        body.dark-mode #view-matrix-grid .matrix-iqra-past {
            color: #93c5fd !important; /* Light Sky Blue */
            font-weight: 800 !important;
        }

        body.dark-mode #view-matrix-grid .matrix-khatam-past {
            color: #f472b6 !important; /* Bright Pink */
            font-weight: 900 !important;
        }

        /* INPUT & SELECT IN HIGH CONTRAST DARK MODE */
        body.dark-mode #view-matrix-grid input,
        body.dark-mode #view-matrix-grid select,
        body.dark-mode #matrix-grid-select-guru,
        body.dark-mode #matrix-tarikh-input,
        body.dark-mode #matrix-kelas-select {
            background-color: #0f172a !important;
            color: #ffffff !important;
            border-color: #64748b !important;
            font-weight: 800 !important;
        }

        body.dark-mode #view-matrix-grid select option,
        body.dark-mode #matrix-grid-select-guru option,
        body.dark-mode #matrix-kelas-select option {
            background-color: #0f172a !important;
            color: #ffffff !important;
        }

        body.dark-mode #view-matrix-grid input:focus,
        body.dark-mode #view-matrix-grid select:focus,
        body.dark-mode #matrix-grid-select-guru:focus,
        body.dark-mode #matrix-tarikh-input:focus {
            border-color: #34d399 !important;
            outline: 2px solid #34d399 !important;
        }

        /* ==========================================
           TAB NAVIGATION BUTTONS - RESPONSIVE MOBILE FIT
           ========================================== */
        .tab-btn {
            border: none !important;
            box-shadow: none !important;
            border-radius: 12px !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
            padding: 8px 12px !important;
            font-size: 11.5px !important;
            font-weight: 800 !important;
            min-height: 38px !important;
            margin-bottom: 0 !important;
        }

        body:not(.dark-mode) .tab-btn:not(.active-tab) {
            background-color: transparent !important;
            color: #065f46 !important;
        }

        body:not(.dark-mode) .tab-btn.active-tab {
            background-color: #059669 !important;
            color: #ffffff !important;
            box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35) !important;
        }

        body.dark-mode .tab-btn:not(.active-tab) {
            background-color: transparent !important;
            color: #a7f3d0 !important;
        }

        body.dark-mode .tab-btn.active-tab {
            background-color: #10b981 !important;
            color: #022c22 !important;
            box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4) !important;
        }

        @media (min-width: 640px) {
            .tab-btn {
                flex: 1 1 0% !important;
                font-size: 12px !important;
            }
        }

        /* Navigasi Bawah (Bottom Nav) */
        .fixed.bottom-0 {
            border-top: 4px solid #000000 !important;
            box-shadow: 0px -4px 0px #000000 !important;
            border-radius: 24px 24px 0 0 !important;
            background-color: #ffffff !important;
        }

        /* Modal Overlay */
        .bg-black\/50 {
            background-color: rgba(0, 0, 0, 0.75) !important;
            backdrop-filter: blur(3px);
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .loading-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(255, 255, 255, 0.8);
            z-index: 200;
            align-items: center;
            justify-content: center;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #10b981;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        /* Custom Scrollbar Global & Matriks */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 6px;
        }

        ::-webkit-scrollbar-thumb {
            background: #10b981;
            border-radius: 6px;
            border: 1.5px solid #f1f5f9;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #059669;
        }

        /* Khusus Jadual Matriks - Scrollbar Tebal & Mesra Laptop */
        .matrix-table-container {
            scrollbar-width: auto;
            scrollbar-color: #10b981 #e2e8f0;
        }

        .matrix-table-container::-webkit-scrollbar {
            width: 14px;
            height: 14px;
        }

        .matrix-table-container::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 8px;
            box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
        }

        .matrix-table-container::-webkit-scrollbar-thumb {
            background: #10b981;
            border-radius: 8px;
            border: 3px solid #e2e8f0;
            transition: background-color 0.2s ease;
        }

        .matrix-table-container::-webkit-scrollbar-thumb:hover {
            background: #059669;
        }

        .matrix-table-container::-webkit-scrollbar-thumb:active {
            background: #047857;
        }

        /* Dark Mode Scrollbar Matriks */
        body.dark-mode .matrix-table-container::-webkit-scrollbar-track {
            background: #1e293b;
        }

        body.dark-mode .matrix-table-container::-webkit-scrollbar-thumb {
            background: #059669;
            border: 3px solid #1e293b;
        }

        body.dark-mode .matrix-table-container::-webkit-scrollbar-thumb:hover {
            background: #10b981;
        }

        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Progress Bar Animation */
        .bar-grow {
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Pulse Dot for Live Status */
        .live-dot {
            height: 8px;
            width: 8px;
            background-color: #10b981;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 1);
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        /* ========================================================
           CSS CETAKAN RASMI (PRINT OPTIMIZATION)
           ======================================================== */
        @page {
            size: A4 portrait;
            margin: 10mm;
        }

        @media print {
            body {
                background: white !important;
                background-image: none !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            .no-print {
                display: none !important;
            }

            #section-profil .glass-card {
                box-shadow: none !important;
                border: none !important;
                padding: 0 !important;
                background: transparent !important;
            }

            #profil-print-area {
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            table {
                page-break-inside: auto;
            }

            tr {
                page-break-inside: avoid;
                page-break-after: auto;
            }

            .break-inside-avoid {
                page-break-inside: avoid;
                break-inside: avoid;
            }
        }

        /* ==========================================
           REKA BENTUK MOD GELAP (DARK MODE) PERFECT CONTRAST
           ========================================== */
        body.dark-mode {
            background-color: #0f172a !important;
            /* slate-900 */
            background-image: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.93)), url('bg-masjid.png') !important;
            background-position: center bottom !important;
            background-repeat: repeat-x !important;
            background-size: contain !important;
            background-attachment: fixed !important;
            color: #f8fafc !important;
        }

        body.dark-mode .bg-white,
        body.dark-mode .glass-card {
            background-color: #1e293b !important;
            /* slate-800 */
            color: #f8fafc !important;
            border-color: #334155 !important;
        }

        /* PERKATAAN KELABU KINI TERANG & JELAS DALAM DARK MODE */
        body.dark-mode .text-gray-400,
        body.dark-mode .text-gray-500,
        body.dark-mode .text-gray-600,
        body.dark-mode .text-gray-700,
        body.dark-mode .text-gray-800,
        body.dark-mode .text-gray-900,
        body.dark-mode .text-slate-400,
        body.dark-mode .text-slate-500,
        body.dark-mode .text-slate-600,
        body.dark-mode .text-slate-700 {
            color: #cbd5e1 !important;
            /* slate-300 */
        }

        /* KOTAK CATATAN & CONTAINER SAMPINGAN */
        body.dark-mode .bg-gray-50,
        body.dark-mode .bg-emerald-50\/50,
        body.dark-mode .bg-indigo-50\/50 {
            background-color: #334155 !important;
            /* slate-700 */
            color: #f8fafc !important;
            border-color: #475569 !important;
        }

        body.dark-mode .bg-emerald-50 {
            background-color: #064e3b !important;
            color: #6ee7b7 !important;
        }

        body.dark-mode .bg-blue-50 {
            background-color: #1e3a8a !important;
            color: #93c5fd !important;
        }

        body.dark-mode .bg-orange-50 {
            background-color: #7c2d12 !important;
            color: #fdba74 !important;
        }

        body.dark-mode .bg-purple-50 {
            background-color: #581c87 !important;
            color: #e9d5ff !important;
        }

        body.dark-mode .bg-indigo-50 {
            background-color: #312e81 !important;
            color: #c7d2fe !important;
        }

        body.dark-mode input,
        body.dark-mode select,
        body.dark-mode textarea {
            background-color: #0f172a !important;
            color: #ffffff !important;
            border-color: #475569 !important;
        }

        body.dark-mode input::placeholder,
        body.dark-mode textarea::placeholder {
            color: #94a3b8 !important;
        }

        body.dark-mode table {
            background: #1e293b !important;
            color: #f8fafc !important;
            border-color: #334155 !important;
        }

        body.dark-mode th {
            background-color: #334155 !important;
            color: #ffffff !important;
            border-color: #475569 !important;
        }

        body.dark-mode td {
            border-color: #334155 !important;
            color: #e2e8f0 !important;
        }

        body.dark-mode tr:hover {
            background-color: #334155 !important;
        }

        body.dark-mode header,
        body.dark-mode nav {
            background-color: #064e3b !important;
            /* emerald-950 */
            border-color: #000000 !important;
        }

        body.dark-mode .text-emerald-800,
        body.dark-mode .text-emerald-700,
        body.dark-mode .text-teal-600 {
            color: #34d399 !important;
            /* emerald-400 */
        }

        body.dark-mode .text-indigo-700,
        body.dark-mode .text-blue-600 {
            color: #818cf8 !important;
            /* indigo-400 */
        }

        body.dark-mode .text-black,
        body.dark-mode .text-slate-900 {
            color: #f8fafc !important;
        }

        body.dark-mode .border-gray-100,
        body.dark-mode .border-gray-200,
        body.dark-mode .border-gray-300 {
            border-color: #334155 !important;
        }

        /* ==========================================
           TEMA WARNA SISTEM (THEMES) - SAFE OVERRIDES
           ========================================== */
        body.theme-navy nav {
            background-color: #1e3a8a !important;
            /* Navy Blue */
        }

        body.theme-navy .bg-emerald-600 {
            background-color: #1e40af !important;
        }

        body.theme-navy .hover\:bg-emerald-700:hover {
            background-color: #1e3a8a !important;
        }

        body.theme-navy .border-emerald-600 {
            border-color: #1e40af !important;
        }

        body.theme-turquoise nav {
            background-color: #0f766e !important;
            /* Deep Teal */
        }

        body.theme-turquoise .bg-emerald-600 {
            background-color: #0d9488 !important;
        }

        body.theme-turquoise .hover\:bg-emerald-700:hover {
            background-color: #0f766e !important;
        }

        /* ==========================================
           EXCEL PARSER (SHEETJS)
           ========================================== */

/* ==========================================
   HELP CHATBOX STYLES
   ========================================== */
        @keyframes helpPulse {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 4px 20px rgba(5, 150, 105, 0.5);
            }

            50% {
                transform: scale(1.06);
                box-shadow: 0 6px 28px rgba(5, 150, 105, 0.7);
            }
        }

        #help-chat-btn:hover {
            transform: scale(1.1) !important;
            animation: none !important;
        }

        .help-faq-btn {
            background: white;
            border: 1.5px solid #6ee7b7;
            color: #065f46;
            font-family: 'Fredoka', sans-serif;
            font-size: 11px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .help-faq-btn:hover {
            background: #059669;
            color: white;
            border-color: #059669;
            transform: translateY(-1px);
        }

        #help-chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        #help-chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        #help-chat-messages::-webkit-scrollbar-thumb {
            background: #6ee7b7;
            border-radius: 4px;
        }

        /* AI Auto-Navigator Glow Effect */
        @keyframes aiGlowPulse {
            0% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.6); transform: scale(1.01); }
            50% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 0 35px rgba(16, 185, 129, 0.9); transform: scale(1.02); }
            100% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0), 0 0 0px rgba(16, 185, 129, 0); transform: scale(1); }
        }
        .ai-glow-highlight {
            animation: aiGlowPulse 1.2s ease-in-out 2 !important;
            border-color: #10b981 !important;
            border-width: 3px !important;
            position: relative;
            z-index: 30;
        }

        /* ==========================================
           MEDIA PRINT - QTRACK GURU
           ========================================== */
        @media print {
            .no-print,
            nav,
            header,
            footer,
            #help-chat-widget,
            #loading,
            .modal,
            button,
            .btn,
            #tab-nav,
            #section-tambah,
            #section-tetapan,
            #sidebar-filter,
            #banner-mobile-pc-recommendation {
                display: none !important;
            }

            body {
                background: white !important;
                background-image: none !important;
                font-size: 11px;
            }

            .glass-card,
            .bg-white {
                box-shadow: none !important;
                border: 1px solid #ccc !important;
            }

            table {
                box-shadow: none !important;
                font-size: 10px;
            }

            #section-dashboard,
            #section-analisis {
                display: block !important;
            }

            .overflow-x-auto {
                overflow: visible !important;
            }
        }

        /* Toast Notification */
        #qtrack-toast {
            transition: opacity 0.4s ease !important;
        }

        /* CETAKAN SIJIL KHAS (A4 LANDSCAPE) */
        @media print {
            body.printing-sijil > *:not(#modal-sijil-qtrack) {
                display: none !important;
            }
            body.printing-sijil #modal-sijil-qtrack {
                position: fixed !important;
                inset: 0 !important;
                background: white !important;
                padding: 0 !important;
                margin: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                z-index: 999999 !important;
                width: 100vw !important;
                height: 100vh !important;
            }
            body.printing-sijil .no-print-sijil {
                display: none !important;
            }
            body.printing-sijil #sijil-print-area {
                width: 100vw !important;
                height: 100vh !important;
                border-width: 12pt !important;
                box-shadow: none !important;
                border-radius: 0 !important;
                page-break-after: always;
                page-break-inside: avoid;
            }
            @page {
                size: A4 landscape;
                margin: 0;
            }
        }

        /* ==========================================
           FULLSCREEN STYLING FOR QURAN & IQRA MODALS
           ========================================== */
        #modal-quran:fullscreen,
        #modal-quran-portal:fullscreen,
        #modal-iqra:fullscreen,
        #modal-iqra-portal:fullscreen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            max-height: 100vh !important;
            padding: 0 !important;
            margin: 0 !important;
            border-radius: 0 !important;
            border: none !important;
            background-color: #f0f9ff !important;
            overflow: hidden !important;
        }

        #modal-quran:fullscreen .glass-card,
        #modal-quran-portal:fullscreen .glass-card,
        #modal-iqra:fullscreen .glass-card,
        #modal-iqra-portal:fullscreen .glass-card,
        #modal-quran .glass-card:fullscreen,
        #modal-quran-portal .glass-card:fullscreen,
        #modal-iqra .glass-card:fullscreen,
        #modal-iqra-portal .glass-card:fullscreen {
            max-width: 100vw !important;
            width: 100vw !important;
            max-height: 100vh !important;
            height: 100vh !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            background-color: #ffffff !important;
            margin: 0 !important;
            padding: 12px !important;
        }

        /* Fullscreen Dark Mode */
        body.dark-mode #modal-quran:fullscreen,
        body.dark-mode #modal-quran-portal:fullscreen,
        body.dark-mode #modal-iqra:fullscreen,
        body.dark-mode #modal-iqra-portal:fullscreen,
        body.dark-mode #modal-quran .glass-card:fullscreen,
        body.dark-mode #modal-quran-portal .glass-card:fullscreen,
        body.dark-mode #modal-iqra .glass-card:fullscreen,
        body.dark-mode #modal-iqra-portal .glass-card:fullscreen {
            background-color: #1e293b !important;
        }

        /* ==========================================
           PENUNJUK MENGAJI / IQRA POINTING FINGER CURSOR
           ========================================== */
        .iqra-pointer-cursor,
        .iqra-pointer-cursor canvas,
        .iqra-pointer-cursor img {
            cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cfilter id='shadow' x='-10%25' y='-10%25' width='130%25' height='130%25'%3E%3CfeDropShadow dx='1' dy='2' stdDeviation='1.2' flood-color='%23000000' flood-opacity='0.4'/%3E%3C/filter%3E%3Cg filter='url(%23shadow)' transform='rotate(-15 14 14)'%3E%3Cpath d='M12,2 C13.3,2 14.3,3 14.3,4.5 L14.3,13.5 C15.1,12.8 16,12.5 17,12.8 C18,13.1 18.6,14 18.6,15 L18.6,15.5 C19.3,14.8 20.3,14.6 21.3,15 C22.2,15.4 22.8,16.3 22.8,17.3 L22.8,18 C23.4,17.5 24.4,17.4 25.2,17.9 C26.1,18.4 26.6,19.4 26.6,20.5 L26.6,23 C26.6,27.5 22.8,31 18,31 L14.5,31 C10.5,31 7,27.5 7,23.5 L7,16.5 C7,15.1 8.1,14 9.5,14 C10.9,14 12,15.1 12,16.5 L12,4.5 C12,3 13,2 14,2 Z' fill='%23fcd34d' stroke='%2378350f' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M7,24 L26.6,24 L26.6,31 L7,31 Z' fill='%23059669' stroke='%23064e3b' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 6 2, pointer !important;
        }

        /* ==========================================
           AUTO-CROP & FOCUS VERSE MODAL (CADANGAN 2)
           ========================================== */
        .focus-crop-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(6px);
            z-index: 60;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 12px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .focus-crop-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .focus-crop-card {
            background: #ffffff;
            border: 3px solid #059669;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.35);
            max-width: 96%;
            max-height: 85%;
            width: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 14px;
            position: relative;
            transform: scale(0.92);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .focus-crop-overlay.active .focus-crop-card {
            transform: scale(1);
        }

        .focus-crop-img {
            max-width: 100%;
            max-height: 65vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            border: 1px solid #e5e7eb;
        }

        /* ==========================================================
           GAYA LIVE CHAT ATAS SKRIN & REAKSI EMOJI TERAPUNG
           ========================================================== */
        #live-chat-onscreen-container > div {
            animation: bounceInBubble 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes bounceInBubble {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.92);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes flyUpSmooth {
            0% {
                opacity: 0;
                transform: translateY(0) scale(0.6) rotate(-10deg);
            }
            15% {
                opacity: 1;
                transform: translateY(-40px) scale(1.2) rotate(5deg);
            }
            80% {
                opacity: 0.9;
                transform: translateY(-380px) scale(1.1) rotate(-8deg);
            }
            100% {
                opacity: 0;
                transform: translateY(-520px) scale(0.9) rotate(12deg);
            }
        }

        /* Sembunyikan scrollbar untuk bar emoji pantas */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Sokongan Mod Gelap untuk Laci Chat */
        body.dark-mode #drawer-tasmik-chat {
            background-color: #1e293b !important;
            color: #f8fafc !important;
            border-left-color: #0f172a !important;
        }

        body.dark-mode #chat-messages-container {
            background-color: #0f172a !important;
        }

        body.dark-mode #drawer-tasmik-chat .bg-white {
            background-color: #1e293b !important;
            color: #f8fafc !important;
        }

        body.dark-mode #drawer-tasmik-chat input {
            background-color: #334155 !important;
            color: #ffffff !important;
            border-color: #475569 !important;
        }

        body.dark-mode #drawer-tasmik-chat .bg-amber-50\/90 {
            background-color: #334155 !important;
            border-color: #475569 !important;
        }

        /* Keserasian Penuh iOS Safari & Safe Area Insets (iPhone Notch & Home Bar) */
        #drawer-tasmik-chat {
            padding-bottom: env(safe-area-inset-bottom, 12px);
        }

        #chat-messages-container {
            -webkit-overflow-scrolling: touch;
        }

        #live-chat-onscreen-container {
            bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        }

        #drawer-tasmik-chat input {
            -webkit-appearance: none;
        }

/* ==========================================================================
   SEKSYEN 12: MODAL RUJUKAN JUZ AL-QURAN 3D TACTILE (GAMBAR 1)
   ========================================================================== */
#modal-juz.modal-juz-backdrop-3d {
    background: rgba(3, 15, 26, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    perspective: 1200px;
}

.modal-juz-card-3d {
    background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 40%, #e6fcf5 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 25px 60px -10px rgba(6, 78, 59, 0.45),
        0 0 35px rgba(16, 185, 129, 0.25) !important;
    position: relative;
    overflow: hidden;
    animation: modal3dPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-juz-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981, #34d399, #fbbf24, #10b981);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    z-index: 20;
}

/* Butang Kad 30 Juzuk 3D Tactile */
.juz-card-3d,
#juz-grid > div {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 55%, #dcfce7 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.12), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
    user-select: none;
}

.juz-card-3d:hover,
#juz-grid > div:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 18px rgba(6, 78, 59, 0.22), inset 0 1.5px 2px #ffffff !important;
    border-color: #34d399 !important;
    border-bottom-color: #047857 !important;
}

.juz-card-3d:active,
#juz-grid > div:active {
    transform: translateY(2px) scale(0.97) !important;
    border-bottom-width: 1.5px !important;
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.15) !important;
}

/* Lencana Juzuk 3D */
.juz-num-badge-3d {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.25) !important;
    letter-spacing: 0.5px;
}

/* Butang Tutup (X) & Tutup Juzuk */
.btn-close-juz-3d {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}
.btn-close-juz-3d:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #ef4444 !important;
    transform: rotate(90deg) scale(1.08) !important;
}

.btn-tutup-juz-3d {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3.5px solid #94a3b8 !important;
    color: #334155 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.btn-tutup-juz-3d:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
}
.btn-tutup-juz-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   SEKSYEN 13: MODAL LAPORAN RUMUSAN PEMANTAUAN PPD / JPN 3D (GAMBAR 2)
   ========================================================================== */
#modal-laporan-ppd.modal-ppd-backdrop-3d {
    background: rgba(3, 15, 26, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    perspective: 1200px;
}

.modal-ppd-card-3d {
    background: linear-gradient(170deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 0 0 1px rgba(254, 240, 138, 0.7) inset,
        0 30px 70px -10px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(245, 158, 11, 0.2) !important;
    position: relative;
    overflow: hidden;
    animation: modal3dPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-ppd-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981, #f59e0b);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.8);
    z-index: 20;
}

/* Kotak Stat 3D Rasmi PPD (Paparan Skrin) */
.ppd-stat-card-3d {
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.ppd-stat-card-3d:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

.ppd-card-murid-3d {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 4px solid #059669 !important;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.15), inset 0 1px 1px #ffffff !important;
}
.ppd-card-khatam-3d {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-bottom: 4px solid #d97706 !important;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.18), inset 0 1px 1px #ffffff !important;
}
.ppd-card-quran-3d {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
    border: 1.5px solid #bfdbfe !important;
    border-bottom: 4px solid #2563eb !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.15), inset 0 1px 1px #ffffff !important;
}
.ppd-card-iqra-3d {
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%) !important;
    border: 1.5px solid #e9d5ff !important;
    border-bottom: 4px solid #9333ea !important;
    box-shadow: 0 6px 14px rgba(147, 51, 234, 0.15), inset 0 1px 1px #ffffff !important;
}

/* Jadual PPD 3D */
.ppd-table-3d {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 2px solid #0f172a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}
.ppd-table-3d thead tr {
    background: linear-gradient(180deg, #fef08a 0%, #fde047 100%) !important;
    border-bottom: 2px solid #0f172a !important;
}
.ppd-table-3d tbody tr:hover {
    background-color: #fefce8 !important;
}

/* Butang Tindakan PPD 3D */
.btn-close-ppd-3d {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
}
.btn-close-ppd-3d:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #ef4444 !important;
    transform: rotate(90deg) scale(1.08) !important;
}

.btn-ppd-cetak-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    border-bottom: 4px solid #064e3b !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
}
.btn-ppd-cetak-3d:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}
.btn-ppd-cetak-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

.btn-ppd-tutup-3d {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3.5px solid #94a3b8 !important;
    color: #334155 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer;
}
.btn-ppd-tutup-3d:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    transform: translateY(-1.5px) !important;
}
.btn-ppd-tutup-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* ==========================================================================
   SEKSYEN 14: MODAL PAPAR BUKTI GAMBAR & TANDATANGAN 3D
   ========================================================================== */
#modal-papar-bukti {
    z-index: 200000 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
#modal-papar-bukti .glass-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 60%, #f0fdf4 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 30px 65px -10px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(16, 185, 129, 0.3) !important;
    position: relative;
    overflow: hidden;
    animation: modal3dPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#modal-papar-bukti .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #00d2ff, #10b981);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    z-index: 20;
}

/* ==========================================================================
   SEKSYEN 15: TAB PROFIL & LAPORAN MURID 3D COMMAND DECK (GAMBAR 4)
   ========================================================================== */
.card-profil-deck-3d {
    background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(238, 242, 255, 0.98) 100%) !important;
    border: 2px solid rgba(99, 102, 241, 0.35) !important;
    border-top: 5px solid #6366f1 !important;
    border-radius: 28px !important;
    box-shadow: 
        0 20px 50px -15px rgba(79, 70, 229, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 8px 24px rgba(0, 0, 0, 0.06) !important;
    position: relative;
}

/* Bar Carian Profil 3D */
.profil-search-container-3d {
    background: linear-gradient(145deg, rgba(238, 242, 255, 0.85) 0%, rgba(224, 231, 255, 0.6) 100%) !important;
    border: 1.5px solid rgba(165, 180, 252, 0.6) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08), inset 0 1px 2px #ffffff !important;
}

.profil-search-input-3d {
    border: 2px solid #c7d2fe !important;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.1), inset 0 1.5px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s ease !important;
}
.profil-search-input-3d:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 6px 16px rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Bekas & Dropdown Pemilihan Murid 3D */
.profil-selectors-container-3d {
    background: linear-gradient(145deg, rgba(238, 242, 255, 0.85) 0%, rgba(224, 231, 255, 0.6) 100%) !important;
    border: 1.5px solid rgba(165, 180, 252, 0.6) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08), inset 0 1px 2px #ffffff !important;
}

.profil-select-3d {
    border: 2px solid #c7d2fe !important;
    border-bottom: 3.5px solid #818cf8 !important;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.1) !important;
    transition: all 0.2s ease !important;
}
.profil-select-3d:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
}

/* Butang Tindakan Profil 3D */
.profil-wa-input-container-3d {
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.15) !important;
}

.btn-profil-sijil-3d {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #b45309 !important;
    border-bottom: 3.5px solid #78350f !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
}
.btn-profil-sijil-3d:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 16px rgba(217, 119, 6, 0.45) !important;
}
.btn-profil-sijil-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-profil-cetak-3d {
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%) !important;
    border: 1px solid #4338ca !important;
    border-bottom: 3.5px solid #312e81 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
}
.btn-profil-cetak-3d:hover {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.45) !important;
}
.btn-profil-cetak-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-profil-wa-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    border-bottom: 3.5px solid #064e3b !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
}
.btn-profil-wa-3d:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 16px rgba(16, 185, 129, 0.45) !important;
}
.btn-profil-wa-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* Lembaran Profil Pada Skrin (3D Elevation Pod) */
.profil-sheet-container-3d {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 24px !important;
    box-shadow: 
        0 15px 40px -10px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    position: relative;
}

/* 1. Kad Hero Profil Murid 3D */
.profil-hero-card-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #eff6ff 100%) !important;
    border: 1.5px solid #c7d2fe !important;
    border-left: 6px solid #6366f1 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12), inset 0 1px 1px #ffffff !important;
    transition: all 0.25s ease !important;
}
.profil-hero-card-3d:hover {
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.18), inset 0 1px 2px #ffffff !important;
}

/* Bingkai Avatar Hologram 3D */
.profil-avatar-frame-3d {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 50%, #f59e0b 100%);
    padding: 3px;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
    display: inline-block;
}
.profil-avatar-frame-3d img {
    border-radius: 17px !important;
    border: none !important;
}

/* Kotak Stat KPI Profil Murid 3D */
.profil-kpi-pill-3d {
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s ease !important;
}
.profil-kpi-pill-3d:hover {
    transform: translateY(-2px) !important;
}
.profil-kpi-tasmik-3d {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
}
.profil-kpi-tahap-3d {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
    border: 1.5px solid #bfdbfe !important;
    border-bottom: 3.5px solid #2563eb !important;
}

/* Lencana Profil Murid 3D */
#profil-badges-container span {
    border-radius: 10px !important;
    border-bottom-width: 2.5px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease !important;
}
#profil-badges-container span:hover {
    transform: translateY(-1.5px) !important;
}

/* 2. Kad Radar Prestasi Holistik 3D */
.profil-radar-card-3d {
    background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 4px solid #059669 !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 28px rgba(6, 78, 59, 0.1), inset 0 1px 2px #ffffff !important;
    position: relative;
    overflow: hidden;
}
.profil-radar-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #00d2ff, #10b981);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.profil-grade-pill-3d {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #34d399 !important;
    border-bottom: 3px solid #064e3b !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.profil-radar-chart-pod-3d {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3px solid #059669 !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.1), inset 0 1px 2px #ffffff !important;
}

/* Cip 5-Paksi Radar 3D */
#profil-radar-chips-list > div {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f0fdf4 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
}
#profil-radar-chips-list > div:hover {
    transform: translateY(-2.5px) scale(1.02) !important;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.2), inset 0 1px 2px #ffffff !important;
    border-color: #34d399 !important;
}
#profil-radar-chips-list > div span.bg-emerald-100 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #047857 !important;
    border-bottom: 2px solid #064e3b !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.25) !important;
    padding: 2px 7px !important;
}

/* 3. Senarai Guru Terlibat 3D */
#profil-senarai-guru > div {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3px solid #94a3b8 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s ease !important;
    padding: 5px 12px !important;
}
#profil-senarai-guru > div:hover {
    transform: translateY(-1.5px) !important;
    border-color: #10b981 !important;
    border-bottom-color: #059669 !important;
    box-shadow: 0 5px 12px rgba(16, 185, 129, 0.15) !important;
}

/* 4. Jadual Sejarah Bacaan 3D */
.profil-table-wrapper-3d {
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    border: 1.5px solid #e2e8f0 !important;
    overflow: hidden !important;
}
.profil-history-table-3d thead tr {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-bottom: 2px solid #cbd5e1 !important;
    color: #1e293b !important;
}
.profil-history-table-3d thead th {
    font-weight: 900 !important;
    letter-spacing: 0.5px;
}
.profil-history-table-3d tbody tr {
    transition: background-color 0.15s ease !important;
}
.profil-history-table-3d tbody tr:hover {
    background-color: #f0fdf4 !important;
}

/* Kawalan Cetakan: Pastikan Kertas Cetak Bersih & Format Rasmi */
@media print {
    .modal-ppd-card-3d,
    .profil-sheet-container-3d,
    .profil-hero-card-3d,
    .profil-radar-card-3d,
    .profil-radar-chart-pod-3d,
    .profil-kpi-pill-3d,
    .profil-table-wrapper-3d {
        box-shadow: none !important;
        border: 1px solid #d1d5db !important;
        background: #ffffff !important;
        transform: none !important;
    }
    .ppd-stat-card-3d,
    #profil-radar-chips-list > div,
    #profil-senarai-guru > div {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   SEKSYEN 16: MAKLUM BALAS & CADANGAN IBU BAPA 3D (GAMBAR 1)
   ========================================================================== */
.card-feedback-deck-3d {
    background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(254, 252, 232, 0.92) 50%, rgba(254, 243, 199, 0.98) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    border-top: 5px solid #f59e0b !important;
    border-radius: 28px !important;
    box-shadow: 
        0 20px 50px -15px rgba(217, 119, 6, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 8px 24px rgba(0, 0, 0, 0.06) !important;
    position: relative;
}

.btn-feedback-refresh-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    border-bottom: 3.5px solid #064e3b !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}
.btn-feedback-refresh-3d:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}
.btn-feedback-refresh-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* 3 Kad KPI Ringkasan Ulasan 3D */
.feedback-kpi-card-3d {
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.feedback-kpi-card-3d:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

.feedback-kpi-icon-3d {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(6px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 2px #ffffff !important;
}

.feedback-kpi-star-3d {
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%) !important;
    border: 1.5px solid #fbbf24 !important;
    border-bottom: 4px solid #b45309 !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2), inset 0 1px 1px #ffffff !important;
}

.feedback-kpi-heart-3d {
    background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 50%, #10b981 100%) !important;
    border: 1.5px solid #34d399 !important;
    border-bottom: 4px solid #047857 !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2), inset 0 1px 1px #ffffff !important;
}

.feedback-kpi-smile-3d {
    background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #6366f1 100%) !important;
    border: 1.5px solid #818cf8 !important;
    border-bottom: 4px solid #4338ca !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2), inset 0 1px 1px #ffffff !important;
}

/* Jadual Maklum Balas 3D */
.feedback-table-wrapper-3d {
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}
.feedback-table-3d thead tr {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border-bottom: 2px solid #b45309 !important;
}
.feedback-table-3d tbody tr {
    transition: background-color 0.15s ease !important;
}
.feedback-table-3d tbody tr:hover {
    background-color: #fefce8 !important;
}

/* ==========================================================================
   SEKSYEN 17: MODAL KESELAMATAN PENTADBIR (ADMIN) 3D (GAMBAR 2)
   ========================================================================== */
#modal-auth.modal-auth-backdrop-3d {
    background: rgba(3, 15, 26, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    perspective: 1200px;
    z-index: 100000 !important;
}

.modal-auth-card-3d {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 60%, #f0fdf4 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 30px 70px -10px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(16, 185, 129, 0.25) !important;
    position: relative;
    overflow: hidden;
    animation: modal3dPopIn 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-auth-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #fbbf24, #10b981);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    z-index: 20;
}

.auth-icon-pod-3d {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 2px solid #a7f3d0 !important;
    border-bottom: 4px solid #059669 !important;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.2), inset 0 1px 2px #ffffff !important;
}

.btn-auth-google-3d {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3.5px solid #94a3b8 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 1px #ffffff !important;
}
.btn-auth-google-3d:hover {
    background: #ffffff !important;
    border-color: #10b981 !important;
    border-bottom-color: #059669 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2) !important;
}
.btn-auth-google-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.auth-input-3d {
    border: 2px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.1), inset 0 1.5px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}
.auth-input-3d:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
}

.btn-auth-batal-3d {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3.5px solid #94a3b8 !important;
    color: #475569 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}
.btn-auth-batal-3d:hover {
    background: #ffffff !important;
    transform: translateY(-1.5px) !important;
}
.btn-auth-batal-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-auth-submit-3d {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    border-bottom: 3.5px solid #064e3b !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-auth-submit-3d:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 18px rgba(16, 185, 129, 0.45) !important;
}
.btn-auth-submit-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* ==========================================================================
   SEKSYEN 18: TAB TETAPAN 3D - PAPAN PENDAHULU GURU & ANALISIS PERANTI (GAMBAR 3 & 4)
   ========================================================================== */
.admin-banner-3d {
    background: radial-gradient(120% 120% at 50% 0%, #064e3b 0%, #042f2e 50%, #022c22 100%) !important;
    border: 2px solid rgba(52, 211, 153, 0.45) !important;
    border-bottom: 4px solid #059669 !important;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.admin-shield-icon-3d {
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4) !important;
}

.admin-badge-type-3d {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

.btn-admin-logout-3d {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #b91c1c !important;
    border-bottom: 3.5px solid #7f1d1d !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-admin-logout-3d:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45) !important;
}
.btn-admin-logout-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* Dek Papan Pendahulu Guru 3D */
.card-leaderboard-deck-3d {
    background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(254, 252, 232, 0.92) 50%, rgba(254, 243, 199, 0.98) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    border-top: 5px solid #f59e0b !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 50px -15px rgba(217, 119, 6, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    position: relative;
}

/* 4 Kad KPI Guru 3D */
.leaderboard-kpi-card-3d {
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.leaderboard-kpi-card-3d:hover {
    transform: translateY(-2.5px) scale(1.02) !important;
}

.leaderboard-kpi-icon-3d {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.leaderboard-kpi-top-3d {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-bottom: 3.5px solid #d97706 !important;
}
.leaderboard-kpi-sesi-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
}
.leaderboard-kpi-guru-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 50%, #ccfbf1 100%) !important;
    border: 1.5px solid #99f6e4 !important;
    border-bottom: 3.5px solid #0d9488 !important;
}
.leaderboard-kpi-ganti-3d {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 50%, #f3e8ff 100%) !important;
    border: 1.5px solid #e9d5ff !important;
    border-bottom: 3.5px solid #9333ea !important;
}

/* Penapis & Jadual Leaderboard 3D */
.leaderboard-filter-select-3d,
.leaderboard-search-input-3d {
    border-bottom: 3px solid #f59e0b !important;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.1) !important;
}
.leaderboard-filter-select-3d:focus,
.leaderboard-search-input-3d:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

.leaderboard-table-wrapper-3d {
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}
.leaderboard-table-3d thead tr {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
}
.leaderboard-table-3d tbody tr {
    transition: background-color 0.15s ease !important;
}
.leaderboard-table-3d tbody tr:hover {
    background-color: #fffbeb !important;
}

/* Dek Analisis Peranti 3D */
.card-device-deck-3d {
    background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 250, 0.92) 50%, rgba(204, 251, 241, 0.98) 100%) !important;
    border: 2px solid rgba(6, 182, 212, 0.4) !important;
    border-top: 5px solid #06b6d4 !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 50px -15px rgba(8, 145, 178, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    position: relative;
}

.device-realtime-pod-3d {
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.btn-device-refresh-3d {
    background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%) !important;
    border: 1px solid #0e7490 !important;
    border-bottom: 3.5px solid #155e75 !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.btn-device-refresh-3d:hover {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-device-refresh-3d:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

/* 4 Kad KPI Peranti 3D */
.device-kpi-card-3d {
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.device-kpi-card-3d:hover {
    transform: translateY(-2.5px) scale(1.02) !important;
}
.device-kpi-icon-3d {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.device-kpi-phone-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    border-bottom: 3.5px solid #059669 !important;
}
.device-kpi-tablet-3d {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-bottom: 3.5px solid #d97706 !important;
}
.device-kpi-pc-3d {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 50%, #dbeafe 100%) !important;
    border: 1.5px solid #bfdbfe !important;
    border-bottom: 3.5px solid #2563eb !important;
}
.device-kpi-mod-3d {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 50%, #f3e8ff 100%) !important;
    border: 1.5px solid #e9d5ff !important;
    border-bottom: 3.5px solid #9333ea !important;
}

.device-ratio-pod-3d {
    border: 1.5px solid #e2e8f0 !important;
    border-bottom: 3.5px solid #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff !important;
}

/* ==========================================================================
   SEKSYEN 19: LOG JEJAK AUDIT 3D & SISTEM KAD AKORDION TETAPAN 3D (GAMBAR 1 & 2)
   ========================================================================== */

/* 1. DEK LOG JEJAK AUDIT 3D (GAMBAR 1) */
.card-audit-deck-3d {
    background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(238, 242, 255, 0.92) 50%, rgba(224, 231, 255, 0.98) 100%) !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    border-top: 5px solid #6366f1 !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 50px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    position: relative;
}

.audit-filter-bar-3d {
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%) !important;
    border: 1.5px solid #c7d2fe !important;
    border-bottom: 3.5px solid #818cf8 !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1), inset 0 1px 1px #ffffff !important;
}

.audit-filter-select-3d {
    border-bottom: 3px solid #6366f1 !important;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.12) !important;
    transition: all 0.2s ease !important;
}
.audit-filter-select-3d:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

.audit-search-input-3d {
    border: 1.5px solid #cbd5e1 !important;
    border-bottom: 3px solid #6366f1 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}
.audit-search-input-3d:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* KAD ITEM REKOD AUDIT 3D */
.audit-item-card-3d {
    background: linear-gradient(145deg, #ffffff 0%, #fbfcfe 60%, #f8fafc 100%) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-bottom: 3.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.audit-item-card-3d:hover {
    transform: translateY(-2.5px) !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14) !important;
}

.audit-item-indigo-3d { border-left: 5px solid #6366f1 !important; }
.audit-item-emerald-3d { border-left: 5px solid #10b981 !important; }
.audit-item-amber-3d { border-left: 5px solid #f59e0b !important; }
.audit-item-purple-3d { border-left: 5px solid #a855f7 !important; }
.audit-item-red-3d { border-left: 5px solid #ef4444 !important; }
.audit-item-blue-3d { border-left: 5px solid #3b82f6 !important; }

.audit-icon-pod-3d {
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}
.audit-icon-indigo-3d {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    color: #4338ca !important;
    border: 1.5px solid #a5b4fc !important;
    border-bottom: 3px solid #6366f1 !important;
}
.audit-icon-emerald-3d {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    border: 1.5px solid #6ee7b7 !important;
    border-bottom: 3px solid #059669 !important;
}
.audit-icon-amber-3d {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border: 1.5px solid #fcd34d !important;
    border-bottom: 3px solid #d97706 !important;
}
.audit-icon-purple-3d {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    color: #6b21a8 !important;
    border: 1.5px solid #d8b4fe !important;
    border-bottom: 3px solid #9333ea !important;
}
.audit-icon-red-3d {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    border: 1.5px solid #fca5a5 !important;
    border-bottom: 3px solid #dc2626 !important;
}
.audit-icon-blue-3d {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    border: 1.5px solid #93c5fd !important;
    border-bottom: 3px solid #2563eb !important;
}

.audit-role-badge-3d {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.audit-role-indigo-3d { background: #e0e7ff !important; color: #3730a3 !important; border: 1px solid #c7d2fe !important; }
.audit-role-emerald-3d { background: #d1fae5 !important; color: #065f46 !important; border: 1px solid #a7f3d0 !important; }
.audit-role-amber-3d { background: #fef3c7 !important; color: #92400e !important; border: 1px solid #fde68a !important; }
.audit-role-purple-3d { background: #f3e8ff !important; color: #6b21a8 !important; border: 1px solid #e9d5ff !important; }
.audit-role-red-3d { background: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
.audit-role-blue-3d { background: #dbeafe !important; color: #1e40af !important; border: 1px solid #bfdbfe !important; }

/* 2. SISTEM KAD AKORDION TETAPAN 3D (GAMBAR 2) */
.card-tetapan-accordion-3d {
    border-radius: 26px !important;
    box-shadow: 
        0 12px 30px -8px rgba(0, 0, 0, 0.08),
        0 4px 12px -2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset !important;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
}
.card-tetapan-accordion-3d:hover {
    box-shadow: 
        0 18px 40px -10px rgba(0, 0, 0, 0.12),
        0 6px 16px -2px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset !important;
    transform: translateY(-1.5px);
}

/* Variasi Tema Warna Dek Akordion 3D */
.card-tetapan-emerald-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #f0fdf4 65%, #dcfce7 100%) !important;
    border-top: 5px solid #10b981 !important;
    border-bottom: 3.5px solid #059669 !important;
}
.card-tetapan-purple-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #faf5ff 65%, #f3e8ff 100%) !important;
    border-top: 5px solid #a855f7 !important;
    border-bottom: 3.5px solid #7e22ce !important;
}
.card-tetapan-orange-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #fff7ed 65%, #ffedd5 100%) !important;
    border-top: 5px solid #f97316 !important;
    border-bottom: 3.5px solid #c2410c !important;
}
.card-tetapan-teal-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #f0fdfa 65%, #ccfbf1 100%) !important;
    border-top: 5px solid #14b8a6 !important;
    border-bottom: 3.5px solid #0f766e !important;
}
.card-tetapan-amber-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #fffbeb 65%, #fef3c7 100%) !important;
    border-top: 5px solid #f59e0b !important;
    border-bottom: 3.5px solid #b45309 !important;
}
.card-tetapan-yellow-3d {
    background: radial-gradient(130% 120% at 50% 0%, #ffffff 0%, #fefce8 65%, #fef9c3 100%) !important;
    border-top: 5px solid #eab308 !important;
    border-bottom: 3.5px solid #a16207 !important;
}

/* Ikon Pod Akordion 3D */
.tetapan-icon-pod-3d {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}
.card-tetapan-accordion-3d:hover .tetapan-icon-pod-3d {
    transform: scale(1.05);
}

.tetapan-icon-emerald-3d {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #34d399;
    border-bottom: 3px solid #047857;
}
.tetapan-icon-purple-3d {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #ffffff;
    border: 1px solid #c084fc;
    border-bottom: 3px solid #581c87;
}
.tetapan-icon-orange-3d {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    color: #ffffff;
    border: 1px solid #fb923c;
    border-bottom: 3px solid #9a3412;
}
.tetapan-icon-teal-3d {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #ffffff;
    border: 1px solid #2dd4bf;
    border-bottom: 3px solid #115e59;
}
.tetapan-icon-amber-3d {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    border: 1px solid #fbbf24;
    border-bottom: 3px solid #78350f;
}
.tetapan-icon-yellow-3d {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    color: #ffffff;
    border: 1px solid #facc15;
    border-bottom: 3px solid #713f12;
}

/* Butang Toggle Akordion 3D */
.tetapan-toggle-btn-3d {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 1px #ffffff;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.tetapan-toggle-btn-3d:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.tetapan-toggle-btn-3d:active {
    transform: scale(0.95) translateY(1px);
}

.tetapan-toggle-emerald-3d {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    border-bottom: 3px solid #059669;
    color: #065f46;
}
.tetapan-toggle-purple-3d {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1.5px solid #e9d5ff;
    border-bottom: 3px solid #7e22ce;
    color: #581c87;
}
.tetapan-toggle-orange-3d {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fed7aa;
    border-bottom: 3px solid #c2410c;
    color: #7c2d12;
}
.tetapan-toggle-teal-3d {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1.5px solid #99f6e4;
    border-bottom: 3px solid #0f766e;
    color: #134e4a;
}
.tetapan-toggle-amber-3d {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-bottom: 3px solid #b45309;
    color: #78350f;
}
.tetapan-toggle-yellow-3d {
    background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%);
    border: 1.5px solid #fef08a;
    border-bottom: 3px solid #a16207;
    color: #713f12;
}

/* BUTANG-BUTANG TINDAKAN 3D */
.btn-3d-emerald {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    border-bottom: 3.5px solid #064e3b !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-emerald:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 18px rgba(16, 185, 129, 0.45) !important;
}
.btn-3d-emerald:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-red {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #b91c1c !important;
    border-bottom: 3.5px solid #7f1d1d !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-red:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-red:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-orange {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%) !important;
    border: 1px solid #c2410c !important;
    border-bottom: 3.5px solid #7c2d12 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-orange:hover {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-orange:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-blue {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid #1d4ed8 !important;
    border-bottom: 3.5px solid #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-blue:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-blue:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-teal {
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%) !important;
    border: 1px solid #0f766e !important;
    border-bottom: 3.5px solid #115e59 !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-teal:hover {
    background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-teal:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-purple {
    background: linear-gradient(180deg, #a855f7 0%, #9333ea 100%) !important;
    border: 1px solid #7e22ce !important;
    border-bottom: 3.5px solid #581c87 !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-purple:hover {
    background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-purple:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}

.btn-3d-amber {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #b45309 !important;
    border-bottom: 3.5px solid #78350f !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}
.btn-3d-amber:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-2px) !important;
}
.btn-3d-amber:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1.5px !important;
}




