:root {
    --bg-main: #020617;
    --bg-panel: rgba(15, 23, 42, 0.95);
    --border-cyan: rgba(6, 182, 212, 0.4);
    --cyan: #22d3ee;
    --emerald-light: #6ee7b7;
    --emerald: #34d399;
    --amber: #fbbf24;
    --red: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    color: var(--emerald);
    background-color: var(--bg-main);
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}

/* Ocultar Logo do Cesium e UI Inútil civil */
#cesiumContainer {
    width: 100%;
    height: 100%;
    position: absolute;
}

.cesium-viewer-bottom,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer {
    display: none !important;
}

/* SIDEBAR - Painel Tático */
.sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    height: 100%;
    z-index: 10;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-cyan);
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header h1 {
    color: var(--cyan);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.header p {
    color: var(--emerald);
    font-size: 0.70rem;
    margin-top: 5px;
    border-bottom: 1px solid var(--border-cyan);
    padding-bottom: 15px;
}

.section {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 15px;
    border-radius: 5px;
}

.title {
    font-size: 0.8rem;
    margin: 0 0 10px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    padding-bottom: 5px;
}

.telemetry-title {
    color: var(--emerald);
}

.ai-section {
    border-color: rgba(245, 158, 11, 0.3);
}

.ai-title {
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Counters Row */
.counters {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.counter-box {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.counter-box i {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.counter-label {
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: #FFF;
    margin-top: 5px;
}

.border-cyan-glow {
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: inset 0 0 5px rgba(34, 211, 238, 0.2);
    color: var(--cyan);
}

.border-orange-glow {
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: inset 0 0 5px rgba(249, 115, 22, 0.2);
    color: #f97316;
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-left: 2px solid var(--emerald);
}

.tag-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-light);
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

.icon {
    width: 14px;
    text-align: center;
    margin-right: 5px;
}

/* Console de IA */
.logs-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 120px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.logs-container p {
    margin: 3px 0;
}

.log-highlight {
    color: var(--amber);
    font-weight: bold;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px;
}

.btn-action {
    width: 100%;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-action:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* Globais e HUD */
.globe-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--cyan);
    opacity: 0.3;
    pointer-events: none;
}

.hud {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-cyan);
    pointer-events: none;
    padding: 10px;
    border-radius: 5px;
    color: var(--cyan);
    font-size: 0.70rem;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    gap: 3px;
}

.white-text {
    color: #f8fafc;
}

/* ALERTAS ESTADOS DE ALERTA */
.hidden {
    display: none !important;
}

.alert-box {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--red);
    padding: 10px;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 0.70rem;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.3);
}

.alert-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}