/* =========================================================
   SIPADAH ENTERPRISE — World-Class Corporate Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette (Deep Executive Navy & Neon Glow) */
    --navy-950: #030712;
    --navy-900: #0b1329;
    --navy-800: #111c44;
    --navy-700: #1a2756;
    
    --brand-blue: #2563eb;
    --brand-blue-glow: #3b82f6;
    --brand-cyan: #06b6d4;
    --brand-indigo: #4f46e5;
    --brand-accent: #6366f1;

    /* Glassmorphism & Elevation Tokens */
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-glow: 0 0 25px rgba(59, 130, 246, 0.18);
    
    --shadow-card: 0 16px 40px -12px rgba(3, 7, 18, 0.35);
    --shadow-glow-btn: 0 8px 24px -4px rgba(37, 99, 235, 0.5);

    /* Radius & Spacing */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Semantic Colors */
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background-color: var(--navy-950);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   LOGIN SCREEN (WORLD-CLASS GLASSMORPHISM)
   ========================================================= */
.login-backdrop {
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b1329 50%, #030712 100%);
    position: relative;
    overflow: hidden;
}

.login-backdrop::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.security-texture {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.glass-card-login {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glass-glow);
}

.secure-field {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.secure-field:focus {
    border-color: var(--brand-blue-glow) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: var(--shadow-glow-btn);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.7);
    transform: translateY(-1px);
}

.btn-primary-gradient:active {
    transform: scale(0.97);
}

/* =========================================================
   DESKTOP MOCKUP FRAME (EXECUTIVE MOBILE DEVICE)
   ========================================================= */
#staff-app-frame {
    width: 100%;
    height: 100dvh;
    background: var(--bg-app);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    body {
        background: radial-gradient(circle at 50% 20%, #0f172a 0%, #030712 100%);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    #staff-app-frame {
        max-width: 430px;
        height: 890px;
        border-radius: 3rem;
        border: 2px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15);
    }
}

/* =========================================================
   HEADER & NAVIGATION ENGINE
   ========================================================= */
.account-header {
    background: linear-gradient(160deg, #090d16 0%, #0f172a 60%, #1e1b4b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.06);
}

#mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.6rem 0.75rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    border: none;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-btn i {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    transition: transform 0.25s ease;
}

.nav-btn.active {
    color: var(--brand-blue);
    background-color: #eff6ff;
    font-weight: 900;
}

.nav-btn.active i {
    transform: translateY(-2px) scale(1.12);
}

/* =========================================================
   UTILITIES & ANIMATIONS
   ========================================================= */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.pb-safe { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }

#main-content {
    padding-bottom: 7.5rem !important;
    scroll-behavior: smooth;
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}