/* --- ULTIMATE PREMIUM SAAS CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc; /* Very light neutral */
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #10b981; /* Emerald base */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --hover-bg: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-premium: 0 10px 40px -10px rgba(0,0,0,0.08);
}

.dark {
    --bg-main: #020617; /* Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --border-color: #1e293b; /* Slate 800 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #34d399; /* Emerald 400 */
    --glass-bg: rgba(15, 23, 42, 0.75);
    --hover-bg: #1e293b;
    --shadow-premium: 0 20px 40px -10px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 25px rgba(255,255,255,0.06);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

.premium-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.dark .premium-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: rgba(255,255,255,0.15);
}

/* Sweep effect on hover */
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: all 0.8s ease;
}

.premium-card:hover::before {
    left: 150%;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

.nav-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}
.nav-link.active {
    background-color: var(--hover-bg);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
    font-weight: 600;
    transform: translateX(4px);
}

.nav-link:hover {
    transform: translateX(4px);
}

.page-content {
    display: none;
    opacity: 0;
}
.page-content.active {
    display: block;
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- ANIMATIONS MAP --- */
@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.98) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stagger-1 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.stagger-2 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.stagger-3 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }
.stagger-4 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.stagger-5 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; }
.stagger-6 { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; opacity: 0; }

.anim-float {
    animation: float 4s ease-in-out infinite;
}

.anim-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Custom Table Row Hover */
tr.group {
    transition: all 0.3s ease;
}
tr.group:hover td {
    transform: scale(1.02);
    font-weight: 600;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
