:root {
    --bg-main: #090d16;
    --bg-panel: #111827;
    --bg-card: #161f33;
    --cyan-neon: #00f0ff;
    --cyan-dim: rgba(0, 240, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: #e2e8f0;
}

.orbitron-font { font-family: 'Orbitron', sans-serif; }
.mono-font { font-family: 'JetBrains Mono', monospace; }
.tiny { font-size: 11px; }
.text-cyan { color: var(--cyan-neon) !important; }
.bg-cyan { background-color: var(--cyan-neon) !important; }
.bg-cyan-soft { background-color: var(--cyan-dim) !important; }

/* Login Page */
.login-body {
    background: radial-gradient(circle at top, #132238 0%, #070a11 100%);
    overflow: hidden;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}
.brand-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #0080ff 100%);
    color: #050811;
    border: none;
    transition: all 0.2s ease;
}
.btn-cyan:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
    color: #000;
}

/* Navbar & Brand Tabs */
.top-bar {
    background-color: #0d1322;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.logo-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-tool-action {
    background: #162035;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 12px;
    transition: all 0.2s;
}
.btn-tool-action:hover {
    border-color: var(--cyan-neon);
    background: #1d2b47;
    color: #fff;
}

.brand-strip {
    background-color: #0b101d;
}
.brand-tab {
    background: #141c2e;
    border: 1px solid var(--border-subtle);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.brand-tab:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.4);
}
.brand-tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 128, 255, 0.2));
    border-color: var(--cyan-neon);
    color: var(--cyan-neon);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Port Indicator */
.port-indicator {
    background: #070b14;
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #f59e0b;
    display: inline-block;
    animation: pulse 1.6s infinite;
}
.pulse-dot.connected {
    background-color: #10b981;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Panels & Cards */
.panel-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.panel-header {
    background-color: #151e32;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    color: #f8fafc;
}
.section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
}

/* SoC Buttons */
.soc-btn {
    background: #172136;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    color: #cbd5e1;
    transition: all 0.2s;
}
.soc-btn:hover {
    border-color: rgba(0, 240, 255, 0.4);
}
.soc-btn.active {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--cyan-neon);
    color: #fff;
}

/* Operation Buttons */
.op-btn {
    background: #162035;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    color: #f1f5f9;
    transition: all 0.2s;
}
.op-btn:hover {
    transform: translateY(-2px);
    background: #1d2a44;
}
.op-primary:hover { border-color: #38bdf8; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2); }
.op-warning:hover { border-color: #fbbf24; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2); }
.op-danger:hover  { border-color: #f87171; box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2); }
.op-success:hover { border-color: #34d399; box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2); }

.op-btn-sm {
    background: #141c2e;
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.2s;
}
.op-btn-sm:hover {
    border-color: var(--cyan-neon);
    background: #1c2740;
}

/* Console & Ports */
.usb-port-box {
    background: #090e1a;
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.console-screen {
    background-color: #050810;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    line-height: 1.55;
    height: 330px;
    overflow-y: auto;
}
.console-screen::-webkit-scrollbar {
    width: 6px;
}
.console-screen::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
