:root {
    --bg-dark: #0a0b10;
    --panel-bg: rgba(20, 25, 30, 0.9);
    --accent: #00f0ff;
    --alert: #ff2a2a;
    --text-main: #e0e0e0;
    --text-dim: #607080;
    --font-mono: 'Fragment Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow: hidden;
}

.hud-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

nav a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
    padding-left: 10px;
    border-left: 2px solid var(--accent);
}

.status-box {
    margin-top: auto;
    border: 1px solid var(--text-dim);
    padding: 10px;
    text-align: center;
}

.status-indicator {
    display: inline-block;
    padding: 5px 10px;
    background: #00ff00;
    color: black;
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Main */
.main-view {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 0;
}

/* Grid System */
.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr 1fr;
    gap: 20px;
    height: 100%;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 10px;
}

.panel-header {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Map */
.map-panel {
    grid-row: span 2;
}

.map-display {
    width: 100%;
    height: 90%;
    background: radial-gradient(circle at center, #1a202c 0%, #000 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.robot-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px var(--accent);
}

.scan-line {
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.3);
    position: absolute;
    top: 50%;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Terminal */
.terminal {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #00ff00;
    height: 85%;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}

/* Bars */
.stat-row {
    margin-bottom: 15px;
}

.stat-row span {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    height: 100%;
    background: var(--accent);
}

.bar.warning {
    background: #ffa500;
}