/*
 * Bagas Monitoring - Cyberpunk Network OS Theme
 * Inspired by Ruijie Reyee Cloud AP Manager & Next-Gen Obsidian Glassmorphism
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-obsidian: #070b12;
    --bg-surface: rgba(13, 19, 33, 0.78);
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(6, 182, 212, 0.3);
    
    --neon-cyan: #06b6d4;
    --neon-emerald: #10b981;
    --neon-amber: #f59e0b;
    --neon-purple: #a855f7;
    --neon-rose: #f43f5e;
    --neon-blue: #3b82f6;
}

/* Global Font & Body */
body, html {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: var(--bg-obsidian) !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    color: #e2e8f0 !important;
    letter-spacing: -0.01em;
}

/* Custom Cyberpunk Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(7, 11, 18, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.35);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.7);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Modern Top Navbar (Clean Flexbox Layout) */
.navbar {
    background: rgba(10, 15, 26, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45) !important;
    padding: 0 20px !important;
    height: 56px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.navbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    float: none !important;
}

.navbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    float: none !important;
    margin-left: auto !important;
}

#brand {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    line-height: 1 !important;
}
#brand:hover {
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.4) !important;
    border-color: #06b6d4 !important;
}

#openNav, #closeNav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: all 0.2s;
    cursor: pointer;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
#closeNav {
    display: none;
}
#openNav:hover, #closeNav:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
    border-color: #06b6d4;
}

#cpage {
    font-weight: 700 !important;
    color: #38bdf8 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: rgba(6, 182, 212, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    float: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.nav-timer-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Navbar Selects & Buttons */
.navbar select.ses {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    height: 34px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.navbar select.ses:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
    outline: none !important;
}

#logout {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    color: #fb7185 !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 34px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}
#logout:hover {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.5) !important;
}

/* Floating Cyber Sidebar */
.sidenav {
    background: rgba(10, 15, 26, 0.82) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.35) !important;
    padding-top: 10px !important;
}

/* Sidebar Menu Item Base */
.sidenav .menu,
.sidenav .dropdown-btn {
    display: flex !important;
    align-items: center !important;
    padding: 9px 14px !important;
    margin: 3px 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
}

.sidenav .menu:hover,
.sidenav .dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    transform: translateX(3px) !important;
}

/* Active Menu Item Glow */
.sidenav .menu.active,
.sidenav .dropdown-btn.active {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.18), rgba(6, 182, 212, 0.03)) !important;
    color: #fff !important;
    border-left: 3px solid #06b6d4 !important;
    border-color: rgba(6, 182, 212, 0.3) rgba(6, 182, 212, 0.1) rgba(6, 182, 212, 0.1) #06b6d4 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.12) !important;
}

/* Glowing Micro-Icon Badges */
.nav-ico {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.sidenav .menu:hover .nav-ico,
.sidenav .dropdown-btn:hover .nav-ico {
    transform: scale(1.1) !important;
}

.ico-gold {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15) !important;
}
.ico-cyan {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15) !important;
}
.ico-blue {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}
.ico-emerald {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
}
.ico-purple {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15) !important;
}
.ico-rose {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.15) !important;
}
.ico-slate {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* Sidebar Dropdown Submenus */
.dropdown-container {
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 8px !important;
    margin: 2px 10px 6px 10px !important;
    padding: 4px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.dropdown-container a {
    display: flex !important;
    align-items: center !important;
    padding: 7px 14px 7px 22px !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    border-radius: 6px !important;
    margin: 2px 6px !important;
    transition: all 0.2s !important;
}
.dropdown-container a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #38bdf8 !important;
    padding-left: 26px !important;
}
.dropdown-container a.active {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #22d3ee !important;
    font-weight: 700 !important;
}

/* Modern Informative Cards (Matching Ruijie Mode) */
.card {
    background: rgba(13, 19, 33, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 20px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    overflow: hidden !important;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(6, 182, 212, 0.08) !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 14px 20px !important;
}
.card-header h3,
.card-header .card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 0.2px !important;
}

.card-body {
    padding: 20px !important;
}

/* Modern Borderless Tables */
table.table {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    width: 100% !important;
}
table.table th {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    padding: 10px 14px !important;
}
table.table td {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #e2e8f0 !important;
    vertical-align: middle !important;
}
table.table tr:hover td {
    background: rgba(6, 182, 212, 0.06) !important;
    color: #fff !important;
}
table.table tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
table.table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Form Controls */
.form-control {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
}
.form-control:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3) !important;
    outline: none !important;
}

/* Breathing Online LED Indicator */
.online-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: breathingLed 2s infinite ease-in-out;
}
@keyframes breathingLed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
