/* AuraEdge - Custom Glass-morphism Stylesheet 
   Designed for: moh kifli
   v3.5.0 - Dual-Theme Adaptive System
*/

:root {
    --aura-indigo: #4f46e5;
    --aura-blue: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar (Dual-Theme Auto-Adapt) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* 1. Track Default (Halaman Terang seperti Katalog & Landing Page) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--aura-indigo);
}

/* 2. Track Khusus Halaman Gelap (Otomatis aktif jika body punya class bg-slate-950) */
body.bg-slate-950 ::-webkit-scrollbar-track {
    background: #0f172a !important; /* Slate 900 */
}
body.bg-slate-950 ::-webkit-scrollbar-thumb {
    background: #334155 !important; /* Slate 700 */
}
body.bg-slate-950 ::-webkit-scrollbar-thumb:hover {
    background: #475569 !important; /* Slate 600 */
}

/* Base Glass-morphism Class */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Glass-morphism (Telah disempurnakan kedalaman bayangannya) */
.glass-dark {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Glow Effect for Security Features */
.aura-glow {
    position: relative;
}
.aura-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--aura-indigo), var(--aura-blue));
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.aura-glow:hover::after {
    opacity: 0.4;
}

/* Card Hover Animation */
.card-active:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 3. GENIUS FIX: Efek Masking otomatis mengikat ke semua tabel responsif! */
.table-container, 
.overflow-x-auto {
    mask-image: linear-gradient(to right, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
}

/* SweetAlert2 Master Overrides */
.swal2-popup {
    border-radius: 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
.swal2-title {
    font-weight: 900 !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
}

/* 4. Utility baru: Tinggal panggil class ini di JS untuk pop-up Dark Mode */
.swal-dark-popup {
    background: rgba(15, 23, 42, 0.92) !important; /* Slate 900 */
    color: #f8fafc !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}