/* ================================================================
   MONSTERGEO vX — Ultra Futuristic Interface
   Palette: turquoise | cyan | magenta | metallic dark
   Fonts: Orbitron (titles), Manrope (content)
   Author: MonsterGeo Engine
================================================================ */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #05060a;
    color: #d9e8ff;
    font-family: "Manrope", sans-serif;
    overflow: hidden;
}

/* ===================== COSMIC BACKGROUND GRID ===================== */

#cosmic-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 255, 0.25),
        rgba(0, 0, 0, 0.85)
    );
    background-blend-mode: screen;
}

/* animated grid overlay */
#cosmic-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#0ff2 1px, transparent 1px),
        linear-gradient(90deg, #0ff2 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.09;
    animation: gridMove 12s linear infinite;
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(-40px); }
}

/* ===================== TOPBAR ===================== */

#topbar {
    height: 56px;
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

#topbar .logo {
    font-family: "Orbitron", sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    color: #69f0ff;
    text-shadow: 0 0 10px #0ff3;
}

#topbar .version {
    font-size: 14px;
    margin-left: 8px;
    color: #ff46d3;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: #b8eaff;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.25s;
}

.nav-btn:hover {
    color: #00eaff;
    border-color: #00eaff;
    box-shadow: 0 0 12px #00eaff55;
}

/* ===================== MAIN LAYOUT ===================== */

#layout {
    display: grid;
    grid-template-columns: 320px auto 360px;
    height: calc(100vh - 56px);
    overflow: hidden;
}

/* ===================== PANELS ===================== */

.panel-block {
    background: rgba(15, 20, 30, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 255, 255, 0.12);
    margin: 14px;
    padding: 16px;
    border-radius: 12px;
    height: auto;
    color: #e0f8ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.panel-block h2 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 14px;
    font-size: 16px;
    letter-spacing: 1px;
    color: #6df7ff;
}

/* Left side */
#left-panel {
    overflow-y: auto;
    padding: 10px 0;
}

/* Right side */
#right-panel {
    overflow-y: auto;
    padding: 10px 0;
}

/* ===================== UPLOAD AREA ===================== */

#upload-zone input[type="file"] {
    width: 100%;
    padding: 8px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    color: #00f5ff;
}

.hint {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.6;
}

/* ===================== COLUMN SELECT ===================== */

#column-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(0,255,255,0.15);
    padding: 10px;
    border-radius: 10px;
}

.column-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.column-item input {
    margin-right: 6px;
}

.action-btn {
    margin-top: 12px;
    padding: 10px 12px;
    width: 100%;
    background: linear-gradient(135deg, #00eaff55, #ff3be255);
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    box-shadow: 0 0 20px #00eaff55;
}

/* ===================== MAP AREA ===================== */

#map-area {
    position: relative;
}

#map3d-canvas {
    width: 100%;
    height: 100%;
    background: #030508;
}

/* Engage bar */
#engage-bar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 10, 15, 0.7);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.engage-btn {
    padding: 10px 20px;
    background: #00eaff66;
    border: 1px solid #00eaffaa;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.engage-btn:hover {
    background: #00eaffcc;
    box-shadow: 0 0 16px #00eaffaa;
}

#engage-status {
    font-size: 13px;
    color: #d0f7ff;
}

/* ===================== REGION SUMMARY + INSIGHTS ===================== */

#region-summary,
#ai-insights {
    min-height: 100px;
    font-size: 14px;
    line-height: 1.4;
}

/* ===================== SCENARIOS ===================== */

#scenario-controls button {
    margin-bottom: 12px;
}

#scenario-list {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
}

/* ===================== STATUS BAR ===================== */

#status-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 26px;
    background: rgba(0, 30, 40, 0.6);
    color: #7deaff;
    padding-left: 10px;
    display: flex;
    align-items: center;
    font-size: 12px;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

/* ===================== NOTIFICATIONS ===================== */

#notification-area {
    position: fixed;
    right: 20px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    background: rgba(0, 40, 50, 0.9);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: #d9faff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    font-size: 13px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}
