/* ==========================================================================
   VKETC ENTERPRISE THEME & MOTION SYSTEM (DEFAULT DARK MODE)
   ========================================================================== */

:root, :root[data-theme="dark"] {
    --bg-body: #070914;
    --bg-sidebar: #0d1120;
    --bg-card: rgba(16, 22, 39, 0.85);
    --bg-card-hover: rgba(26, 35, 60, 0.95);
    --bg-input: rgba(10, 14, 28, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 51, 75, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #ff334b;
    --primary-glow: rgba(255, 51, 75, 0.35);
    --primary-dark: #d9142e;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    
    --navbar-bg: rgba(13, 17, 32, 0.88);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
    --bg-body: #f4f6fb;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #eef2f6;
    --border-color: #e2e8f0;
    --border-hover: rgba(255, 51, 75, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #dc2626;
    --primary-glow: rgba(220, 38, 38, 0.2);
    --primary-dark: #b91c1c;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-green: #059669;
    --accent-amber: #d97706;
    --accent-cyan: #0891b2;
    --accent-pink: #db2777;
    
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-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(--primary);
}

/* Ambient Cyber Mesh Background */
.vketc-ambient-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 51, 75, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

/* Motion & Animation Keyframes */
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.anim-fade { animation: fadeInScale 0.35s ease-out; }
.anim-slide { animation: slideInUp 0.35s ease-out; }
.anim-float { animation: floatSoft 4s ease-in-out infinite; }

/* Buttons */
.vketc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vketc-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-glow);
}
.vketc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px var(--primary-glow);
    filter: brightness(1.08);
}

.vketc-btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.vketc-btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Glass Card */
.vketc-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.vketc-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Form Controls */
.vketc-input, .vketc-select {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}
.vketc-input:focus, .vketc-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Badges */
.vketc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.vketc-badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.vketc-badge-red { background: rgba(255, 51, 75, 0.15); color: #ff334b; border: 1px solid rgba(255, 51, 75, 0.3); }
.vketc-badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.vketc-badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* SweetAlert Popup Dark/Light Theme Match */
.custom-swal-popup {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(25px) !important;
}
