/**
 * WarZ VENOM GUARD & Sentinel Control Center
 * UI Theme Engine: Phoenix ZMMO Battlefield / Tactical Dark Glass
 * Inspired by WEB-PhoenixZMMO Design System
 * Compatible with IIS, PHP 8.2 & Modern Browsers
 */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
    /* VENOM GUARD Engine Design Tokens - Razer Emerald Mint & Deep Obsidian Chrome */
    --font-primary: 'Kanit', sans-serif;
    --font-display: 'Chakra Petch', 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-cyber: 'Chakra Petch', sans-serif;

    --bg-dark: #070a0e;
    --bg-surface: rgba(11, 16, 22, 0.88);
    --bg-card: rgba(13, 20, 28, 0.82);
    --bg-card-hover: rgba(18, 27, 38, 0.95);

    --border-subtle: rgba(0, 245, 160, 0.16);
    --border-hover: rgba(0, 245, 160, 0.45);

    /* Razer Emerald Mint Neon (Primary Glow) */
    --primary-cyan: #00f5a0;
    --primary-cyan-glow: rgba(0, 245, 160, 0.40);
    --primary-blue: #10b981;

    /* Danger Crimson Red (Alerts / Bans) */
    --primary-red: #ff2d55;
    --primary-red-glow: rgba(255, 45, 85, 0.45);

    --primary-emerald: #00f5a0;
    --primary-emerald-glow: rgba(0, 245, 160, 0.40);

    --primary-purple: #8b5cf6;
    --primary-purple-glow: rgba(139, 92, 246, 0.35);

    --primary-amber: #f59e0b;
    --primary-amber-glow: rgba(245, 158, 11, 0.35);

    --radius-premium: 20px;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(0, 245, 160, 0.12);
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: #f1f5f9;
    overflow-x: hidden;
    line-height: 1.5;
    background-image:
        radial-gradient(circle at 18% 15%, rgba(0, 245, 160, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(7, 10, 14, 0.88), rgba(9, 13, 18, 0.94)),
        url('../images/venomguard-theme.jpg?v=2');
    background-size: auto, auto, auto, cover, cover;
    background-attachment: fixed;
    background-position: center;
}

.font-display {
    font-family: var(--font-display);
}

.font-cyber {
    font-family: var(--font-cyber);
}

.font-kanit {
    font-family: var(--font-primary);
}

.mono {
    font-family: var(--font-mono);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(7, 10, 14, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 160, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 160, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 160, 0.75);
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.55);
}

/* ============================================================= */
/* PHOENIX RADAR & STATUS PULSE ANIMATIONS */
/* ============================================================= */
.radar-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
    display: inline-block;
}
.radar-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid currentColor;
    animation: pulseRadarLoop 2s infinite ease-out;
}
@keyframes pulseRadarLoop {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================= */
/* MASTER HERO BANNER (VenomGuard Engine Hero Style)             */
/* ============================================================= */
.dashboard-hero-v3 {
    background: linear-gradient(135deg, rgba(8, 22, 13, 0.88), rgba(4, 11, 7, 0.82));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 65, 0.24);
    border-radius: 14px;
    padding: 12px 18px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 255, 65, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-hero-v3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 255, 65, 0.16), transparent 70%);
    pointer-events: none;
}

.dashboard-hero-v3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff41 0%, rgba(34, 197, 94, 0.35) 50%, #cbd5e1 100%);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.55);
    pointer-events: none;
}

.dashboard-hero-v3 h2 {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
}

.dashboard-hero-v3 p {
    font-size: 0.75rem !important;
    margin-top: 0.2rem !important;
    line-height: 1.35 !important;
}

.hero-sub-tag {
    color: var(--primary-cyan);
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.hero-sub-tag::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--primary-cyan);
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-cyan-glow);
}

.hero-sub-tag.amber {
    color: var(--primary-amber);
}
.hero-sub-tag.amber::before {
    background: var(--primary-amber);
    box-shadow: 0 0 8px var(--primary-amber-glow);
}

.hero-sub-tag.red {
    color: var(--primary-red);
}
.hero-sub-tag.red::before {
    background: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red-glow);
}

/* ============================================================= */
/* PREMIUM HUD MANAGEMENT CARDS (.mgmt-card-v3 style) */
/* ============================================================= */
.mgmt-card-v3 {
    background: linear-gradient(135deg, rgba(8, 20, 12, 0.84), rgba(4, 10, 6, 0.76));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 9px 13px !important;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mgmt-card-v3 .w-10.h-10 {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.5rem !important;
}

.mgmt-card-v3 .w-10.h-10 i {
    font-size: 0.75rem !important;
}

.mgmt-card-v3 .text-lg,
.mgmt-card-v3 .text-2xl {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    margin-top: 0.35rem !important;
}

.mgmt-card-v3 .mt-3 {
    margin-top: 0.35rem !important;
}

.mgmt-card-v3 .pt-2 {
    padding-top: 0.35rem !important;
}

.mgmt-card-v3:hover {
    background: linear-gradient(135deg, rgba(12, 30, 18, 0.92), rgba(6, 15, 9, 0.86));
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 255, 65, 0.12);
}

.mgmt-card-cyan {
    border-left: 5px solid #00ff41 !important;
}
.mgmt-card-cyan:hover {
    border-color: rgba(0, 255, 65, 0.55);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 255, 65, 0.28) !important;
}

.mgmt-card-purple {
    border-left: 5px solid #22c55e !important;
}
.mgmt-card-purple:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(34, 197, 94, 0.22) !important;
}

.mgmt-card-amber {
    border-left: 5px solid #f59e0b !important;
}
.mgmt-card-amber:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.18) !important;
}

.mgmt-card-emerald {
    border-left: 5px solid #10b981 !important;
}
.mgmt-card-emerald:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.22) !important;
}

.mgmt-card-red {
    border-left: 5px solid #ff2d55 !important;
}
.mgmt-card-red:hover {
    border-color: rgba(255, 45, 85, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 45, 85, 0.25) !important;
}

/* VenomGuard Dual-Tone Utility Styles (Venom Neon Green & Metallic Silver) */
.venomguard-dual-border {
    position: relative;
}
.venomguard-dual-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff41 0%, rgba(0, 255, 65, 0.35) 45%, rgba(203, 213, 225, 0.45) 70%, #10b981 100%);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.55);
    pointer-events: none;
    z-index: 5;
}

.venomguard-dual-glow {
    box-shadow: 
        -10px 0 35px -5px rgba(0, 255, 65, 0.18),
        10px 0 35px -5px rgba(16, 185, 129, 0.16),
        0 20px 45px rgba(0, 0, 0, 0.8);
}

.text-venomguard {
    background: linear-gradient(90deg, #00ff41 0%, #86efac 45%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(135deg, rgba(8, 19, 11, 0.80), rgba(4, 10, 6, 0.72));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-premium);
    box-shadow: var(--shadow-premium);
}

/* ============================================================= */
/* SIDEBAR BUTTONS & NAVIGATION */
/* ============================================================= */
.sidebar-panel {
    background: rgba(4, 10, 6, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-subtle);
}

.tab-btn {
    border-radius: 14px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid transparent;
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 255, 65, 0.06);
    color: #fff;
    transform: translateX(4px);
    border-color: rgba(0, 255, 65, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.20), rgba(16, 185, 129, 0.05)) !important;
    border: 1px solid rgba(0, 255, 65, 0.5) !important;
    border-left: 4px solid #00ff41 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 65, 0.2) !important;
}

.tab-btn-purple.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.06)) !important;
    border: 1px solid rgba(34, 197, 94, 0.55) !important;
    border-left: 4px solid #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 197, 94, 0.22) !important;
}

/* ============================================================= */
/* PILL BUTTONS & CONTROLS */
/* ============================================================= */
.pill-btn {
    border-radius: 9999px;
    transition: all 0.25s ease;
}
.pill-btn:hover {
    transform: translateY(-2px);
}

/* ============================================================= */
/* EVIDENCE LIGHTBOX & SCANLINE */
/* ============================================================= */
.scanline-overlay {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.35)
    );
    background-size: 100% 4px;
}

/* ============================================================= */
/* SWEETALERT2 VENOM GUARD THEME OVERRIDES */
/* ============================================================= */
.swal2-popup.swal2-toast {
    background: rgba(5, 14, 8, 0.96) !important;
    border: 1px solid rgba(0, 255, 65, 0.4) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 255, 65, 0.22) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 16px !important;
    color: #f8fafc !important;
    font-family: var(--font-primary) !important;
}

.swal2-popup:not(.swal2-toast) {
    background: linear-gradient(135deg, rgba(8, 20, 12, 0.98), rgba(4, 10, 6, 0.98)) !important;
    border: 1px solid rgba(0, 255, 65, 0.2) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 255, 65, 0.18) !important;
    border-radius: 24px !important;
    color: #f8fafc !important;
    font-family: var(--font-primary) !important;
    padding: 2rem !important;
}

.swal2-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-family: var(--font-primary) !important;
    letter-spacing: -0.01em !important;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    font-family: var(--font-primary) !important;
}

.swal2-confirm {
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    font-family: var(--font-primary) !important;
    padding: 0.75rem 1.6rem !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.25s ease !important;
}
.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.swal2-cancel {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    font-family: var(--font-primary) !important;
    padding: 0.75rem 1.4rem !important;
}

.swal2-input, .swal2-textarea, .swal2-select {
    background-color: #040a06 !important;
    border: 1px solid rgba(0, 255, 65, 0.2) !important;
    border-radius: 12px !important;
    color: #f8fafc !important;
    font-family: var(--font-primary) !important;
    font-size: 0.9rem !important;
}
.swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus {
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 0 15px var(--primary-cyan-glow) !important;
}

/* ============================================================= */
/* CYBERPUNK / GAMING SENTINEL DESIGN SYSTEM */
/* ============================================================= */

/* Cyber Grid Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Top Sentinel Navigation Console Bar */
.cyber-top-nav-bar {
    background: rgba(4, 10, 6, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.22);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), inset 0 -1px 0 rgba(0, 255, 65, 0.14);
    position: sticky;
    top: 64px;
    z-index: 35;
}

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

/* Cyber Tab Buttons */
.cyber-tab-btn {
    background: rgba(7, 18, 11, 0.68);
    border: 1px solid rgba(0, 255, 65, 0.10);
    color: #94a3b8;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.cyber-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: transparent;
    transition: all 0.25s ease;
    border-radius: 9999px;
}

.cyber-tab-btn:hover {
    background: rgba(12, 32, 19, 0.88);
    color: #ffffff;
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.18);
    transform: translateY(-1px);
}

.cyber-tab-btn.cyber-tab-active,
.cyber-tab-btn.active {
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.20) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
    border-color: rgba(0, 255, 65, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.cyber-tab-btn.cyber-tab-active::after,
.cyber-tab-btn.active::after {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.cyber-tab-btn.cyber-tab-purple:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.22);
}

.cyber-tab-btn.cyber-tab-purple-active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.24) 0%, rgba(21, 128, 61, 0.08) 100%) !important;
    border-color: rgba(34, 197, 94, 0.65) !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.cyber-tab-btn.cyber-tab-purple-active::after {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.cyber-tab-btn.cyber-tab-danger:hover {
    border-color: rgba(255, 42, 95, 0.4);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.2);
}

.cyber-tab-btn.cyber-tab-amber:hover {
    border-color: rgba(255, 183, 3, 0.4);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}

/* Cyber Action Buttons */
.cyber-action-btn {
    background: rgba(7, 18, 11, 0.75);
    border: 1px solid rgba(0, 255, 65, 0.14);
    font-family: var(--font-primary);
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.cyber-action-btn:hover {
    transform: translateY(-2px);
}

.cyber-btn-cyan {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.20), rgba(16, 185, 129, 0.08));
    border-color: rgba(0, 255, 65, 0.45);
    color: #00ff55;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.18);
}

.cyber-btn-cyan:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.35), rgba(16, 185, 129, 0.20));
    border-color: #00ff41;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    color: #ffffff;
}

.cyber-btn-purple {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(21, 128, 61, 0.10));
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.18);
}

.cyber-btn-purple:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(21, 128, 61, 0.22));
    border-color: #4ade80;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.38);
    color: #ffffff;
}

.cyber-btn-danger {
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.16), rgba(159, 18, 57, 0.08));
    border-color: rgba(255, 42, 95, 0.35);
    color: #ff4d79;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

.cyber-btn-danger:hover {
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.32), rgba(225, 29, 72, 0.22));
    border-color: #ff4d79;
    box-shadow: 0 0 25px rgba(255, 42, 95, 0.35);
    color: #ffffff;
}

/* Cyber HUD Badges */
.cyber-badge {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-family: var(--font-mono);
}

.cyber-badge-cyan {
    background: rgba(0, 255, 65, 0.14);
    border-color: rgba(0, 255, 65, 0.4);
    color: #00ff55;
}

.cyber-badge-purple {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
}

.cyber-badge-red {
    background: rgba(255, 42, 95, 0.2);
    border-color: rgba(255, 42, 95, 0.45);
    color: #ff4d79;
}

.cyber-badge-amber {
    background: rgba(255, 183, 3, 0.16);
    border-color: rgba(255, 183, 3, 0.45);
    color: #ffb703;
}

.cyber-badge-emerald {
    background: rgba(0, 255, 102, 0.15);
    border-color: rgba(0, 255, 102, 0.45);
    color: #00ff66;
}

/* Cyber HUD Card Tech Corner Accents */
.cyber-hud-card {
    position: relative;
    background: linear-gradient(135deg, rgba(8, 20, 12, 0.84), rgba(4, 10, 6, 0.78));
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 255, 65, 0.08);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cyber-hud-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-top: 2px solid rgba(0, 255, 65, 0.45);
    border-right: 2px solid rgba(0, 255, 65, 0.45);
    border-top-right-radius: 14px;
    pointer-events: none;
}

.cyber-hud-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 65, 0.18);
    border-color: rgba(0, 255, 65, 0.35);
}

/* ============================================================= */
/* CYBER SENTINEL SIDEBAR NAVIGATION SYSTEM                      */
/* ============================================================= */
.cyber-sidebar {
    background: rgba(4, 10, 6, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(0, 255, 65, 0.12);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.75);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
}

.cyber-nav-item {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.7rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    user-select: none;
    text-align: left;
    width: 100% !important;
    white-space: nowrap !important;
}

.cyber-nav-item::after {
    display: none !important;
}

.cyber-nav-item:hover {
    color: #ffffff !important;
    background: rgba(0, 255, 65, 0.06) !important;
    border-color: rgba(0, 255, 65, 0.28) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.10) !important;
    transform: translateX(3px);
}

.cyber-nav-item.active,
.cyber-nav-item.cyber-tab-active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.20) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    border-color: rgba(0, 255, 65, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.cyber-nav-item.active::before,
.cyber-nav-item.cyber-tab-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: #00ff41;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #00ff41;
}

.cyber-nav-item.cyber-tab-purple:hover {
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.14) !important;
}

.cyber-nav-item.cyber-tab-purple-active,
.cyber-nav-item.cyber-tab-purple.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.24) 0%, rgba(21, 128, 61, 0.05) 100%) !important;
    border-color: rgba(34, 197, 94, 0.55) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.cyber-nav-item.cyber-tab-purple-active::before,
.cyber-nav-item.cyber-tab-purple.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: #4ade80;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #4ade80;
}

.cyber-nav-item.cyber-tab-danger:hover {
    border-color: rgba(255, 42, 95, 0.35) !important;
}

.cyber-nav-item.cyber-tab-amber:hover {
    border-color: rgba(255, 183, 3, 0.35) !important;
}

/* ============================================================= */
/* UNIVERSAL RESPONSIVE & MOBILE TOUCH OPTIMIZATIONS             */
/* ============================================================= */
html {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Smooth momentum touch scrolling for tables and containers */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

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

/* Fast tap response and touch manipulation on touchscreens */
@media (hover: none) and (pointer: coarse) {
    button, a, input, select, textarea, .cyber-tab-btn, .cyber-action-btn, .cyber-nav-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile screen optimization (max-width: 640px) */
@media (max-width: 640px) {
    .dashboard-hero-v3 {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }

    .dashboard-hero-v3 h1 {
        font-size: 1.15rem !important;
        line-height: 1.5rem !important;
    }

    .mgmt-card-v3 {
        padding: 0.875rem !important;
        border-radius: 0.75rem !important;
    }

    /* Compact tables on small screens */
    table td, table th {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Responsive SweetAlert2 Popups */
    .swal2-popup {
        width: 92vw !important;
        max-width: 400px !important;
        padding: 1.15rem !important;
        font-size: 0.85rem !important;
    }
    
    .swal2-title {
        font-size: 1.1rem !important;
    }
    
    .swal2-html-container {
        font-size: 0.8rem !important;
    }

    /* Lightbox image view fit */
    #image-modal img {
        max-height: 75vh !important;
    }
}

/* Custom subtle scrollbar for mobile / touch-scrollable tables */
.overflow-x-auto::-webkit-scrollbar {
    height: 5px;
}
.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 4px;
}
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}



