/* ============================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ============================================================================ */
:root {
    --bg-dark: #050a15;
    --bg-darker: #02050b;
    --bg-panel: rgba(10, 20, 40, 0.45);
    --border-panel: rgba(0, 242, 254, 0.15);
    --border-panel-glow: rgba(0, 242, 254, 0.3);
    
    --color-cyan: #00f2fe;
    --color-cyan-glow: rgba(0, 242, 254, 0.5);
    
    --color-purple: #b927fc;
    --color-purple-glow: rgba(185, 39, 252, 0.5);
    
    --color-green: #00e676;
    --color-green-glow: rgba(0, 230, 118, 0.5);
    
    --color-amber: #ffb300;
    --color-amber-glow: rgba(255, 179, 0, 0.5);
    
    --color-red: #ff3366;
    --color-red-glow: rgba(255, 51, 102, 0.5);
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-norm: 0.3s ease;
}

/* ============================================================================
   GLOBAL & RESET STYLES
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-glow);
}

/* High-tech glow backgrounds */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(10, 25, 50, 0.8) 0%, rgba(2, 5, 11, 0.95) 100%),
        linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    z-index: -2;
}

.glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-cyan);
    top: -100px;
    left: -100px;
    animation: float 20s infinite alternate;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-purple);
    bottom: -150px;
    right: -100px;
    animation: float 25s infinite alternate-reverse;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-green);
    top: 40%;
    left: 60%;
    animation: float 15s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* ============================================================================
   LAYOUT SYSTEM (RESPONSIVE Grid & Columns)
   ============================================================================ */
.app-container {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(8, 15, 30, 0.6);
    border: 1px solid var(--border-panel);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 8px var(--color-cyan-glow));
    animation: spin-slow 25s linear infinite;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    display: block;
}

/* Metrics in Header */
.quick-metrics {
    display: flex;
    gap: 1.5rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.25rem;
}

.metric-card .m-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.metric-card .m-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.header-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
}

.clock-icon {
    color: var(--color-cyan);
    font-size: 1.2rem;
}

.time-readout .time {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.time-readout .date {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Mobile Nav Bar - Hidden by default on PC */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 8, 16, 0.95);
    border-top: 1px solid var(--border-panel);
    backdrop-filter: blur(15px);
    z-index: 100;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.25rem 0;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn i {
    font-size: 1.1rem;
}

.nav-btn.active {
    color: var(--color-cyan);
    text-shadow: 0 0 6px var(--color-cyan-glow);
}

/* MAIN LAYOUT SECTIONS */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 1rem;
    flex: 1;
    margin-bottom: 0.5rem;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================================================
   GLASS PANEL CARDS
   ============================================================================ */
.panel-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--transition-norm);
}

.panel-card:hover {
    border-color: var(--border-panel-glow);
}

.card-header {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h2 i {
    font-size: 0.9rem;
}

.card-body {
    padding: 1rem;
    flex: 1;
}

/* ============================================================================
   RADAR & MAP COMPONENT
   ============================================================================ */
.radar-card {
    flex: 1;
    min-height: 400px;
}

.radar-body {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.04) 0%, transparent 80%);
}

#radar-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#radar-canvas:active {
    cursor: grabbing;
}

.radar-controls {
    display: flex;
    gap: 0.35rem;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.ctrl-btn:hover {
    background: var(--color-cyan);
    color: var(--bg-darker);
    border-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan-glow);
}

.radar-overlay-stats {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(4, 8, 16, 0.75);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.4;
    pointer-events: none;
}

.radar-legend {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(4, 8, 16, 0.75);
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    gap: 0.75rem;
    font-size: 0.6rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.icon-gadp { color: var(--color-purple); }
.icon-beacon { color: var(--color-cyan); }
.icon-scs { color: var(--color-amber); }
.icon-td { color: var(--color-green); }

/* ============================================================================
   STATUS MINI CARDS
   ============================================================================ */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.status-mini-card {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.mini-icon {
    font-size: 1.25rem;
    width: 32px;
    display: flex;
    justify-content: center;
}

.mini-data {
    display: flex;
    flex-direction: column;
}

.mini-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.mini-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ============================================================================
   TELEMETRY TABLE & GRAPH
   ============================================================================ */
.fleet-card {
    flex: 1.2;
}

.table-responsive {
    overflow-x: auto;
    padding: 0;
}

.fleet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}

.fleet-table th, .fleet-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fleet-table th {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.01);
}

.fleet-table tbody tr {
    transition: background-color var(--transition-fast);
}

.fleet-table tbody tr:hover {
    background: rgba(0, 242, 254, 0.02);
}

.fleet-table tbody tr.active-row {
    background: rgba(0, 242, 254, 0.04);
}

.fleet-table td {
    font-family: var(--font-body);
}

.fleet-table td:first-child {
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-weight: 600;
}

/* Status pill badges */
.status-pill {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 4px;
    text-transform: uppercase;
}

.status-pill.active {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-pill.idle {
    background: rgba(255, 179, 0, 0.1);
    color: var(--color-amber);
    border: 1px solid rgba(255, 179, 0, 0.2);
}

.status-pill.alert {
    background: rgba(255, 51, 102, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Chart */
.chart-card {
    flex: 0.8;
}

.theme-select {
    background: rgba(4, 8, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.chart-body {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.altitude-chart-container {
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 0.25rem;
}

.altitude-chart-container svg {
    width: 100%;
    height: 100%;
}

/* ============================================================================
   CONTROLS PANELS
   ============================================================================ */
.control-card {
    flex: 1;
}

.control-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    background: rgba(4, 8, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 4px var(--color-cyan-glow);
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0099ff 100%);
    border: none;
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    box-shadow: 0 0 12px var(--color-cyan-glow);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Simulator controls */
.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-row {
    display: flex;
    gap: 0.5rem;
}

.sim-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sim-btn.glow-btn-cyan {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.sim-btn.glow-btn-cyan:hover {
    background: var(--color-cyan);
    color: var(--bg-darker);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.sim-btn.glow-btn-cyan.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.sim-btn.glow-btn-cyan.active:hover {
    box-shadow: 0 0 10px var(--color-red-glow);
}

.sim-btn:hover {
    background: rgba(255,255,255,0.08);
}

.sim-slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sim-slider-group label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-container input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-cyan);
    cursor: pointer;
    box-shadow: 0 0 4px var(--color-cyan-glow);
}

.slider-container span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-cyan);
    width: 25px;
    text-align: right;
}

.sim-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sim-quick-actions .action-lbl {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: 0.4rem;
}

.action-btn {
    flex: 1;
    background: rgba(4, 8, 16, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.02);
}

/* ============================================================================
   CONSOLES & AGENT TERMINAL
   ============================================================================ */
.console-card {
    flex: 1;
    min-height: 400px;
}

.console-mode-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.console-mode-badge.live {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--color-green);
    color: var(--color-green);
}

.console-mode-badge i {
    font-size: 0.45rem;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.console-body {
    background: rgba(2, 5, 11, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.console-welcome {
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    padding-bottom: 0.75rem;
}

.welcome-ascii {
    white-space: pre;
    color: var(--color-cyan);
    font-size: 0.45rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* Message lines */
.console-line {
    animation: fade-in 0.25s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.console-line.user-input {
    color: #e2e8f0;
    background: rgba(255,255,255,0.02);
    padding: 0.3rem 0.5rem;
    border-left: 2px solid var(--color-cyan);
    font-weight: 500;
}

.console-line.thinking {
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.3rem 0.5rem;
    border-left: 2px solid var(--text-muted);
}

.console-line.tool-call {
    color: var(--color-purple);
    background: rgba(185, 39, 252, 0.03);
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(185, 39, 252, 0.1);
    border-left: 3px solid var(--color-purple);
    border-radius: 4px;
}

.console-line.tool-call .t-header {
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.15rem;
}

.console-line.tool-call pre {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem;
    border-radius: 2px;
    margin-top: 0.25rem;
}

.console-line.final-response {
    color: var(--text-primary);
    background: rgba(0, 242, 254, 0.02);
    padding: 0.6rem;
    border: 1px solid rgba(0, 242, 254, 0.08);
    border-radius: 4px;
    line-height: 1.6;
}

.console-line.final-response strong {
    color: var(--color-cyan);
}

.console-line.error {
    color: var(--color-red);
    background: rgba(255, 51, 102, 0.05);
    border-left: 2px solid var(--color-red);
    padding: 0.3rem 0.5rem;
}

/* Presets grid */
.console-quick-presets {
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.presets-title {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.65rem;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preset-btn:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--color-cyan-glow);
}

.preset-btn .badge {
    background: var(--color-purple);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.08rem 0.25rem;
    border-radius: 3px;
    font-family: var(--font-heading);
}

/* Console footer */
.console-footer {
    display: flex;
    padding: 0.6rem;
    background: rgba(4, 8, 16, 0.5);
    gap: 0.5rem;
}

.console-footer input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    outline: none;
    font-family: var(--font-body);
}

.console-footer input:focus {
    border-color: var(--color-cyan);
}

.send-btn {
    background: var(--color-cyan);
    border: none;
    color: var(--bg-darker);
    width: 34px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.send-btn:hover {
    box-shadow: 0 0 8px var(--color-cyan-glow);
    background: white;
}

/* ============================================================================
   RESPONSIVENESS (PC, MAC, MOBILE, TABLET)
   ============================================================================ */

/* Desktop & Mac (Large display) */
@screen-min-900 {
    /* Set specific dimensions or larger sizing if desired */
}

/* Tablet / Landscape Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    #console-section {
        grid-column: span 2;
    }
}

/* Mobile & Collapsed Panels (max-width: 900px) */
@media (max-width: 900px) {
    .app-container {
        padding: 0.5rem;
        padding-bottom: 70px; /* Space for fixed bottom mobile menu */
    }
    
    .main-header {
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .logo-text h1 {
        font-size: 0.95rem;
    }
    
    .logo-text span {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
    
    .header-time {
        font-size: 0.85rem;
    }
    
    .time-readout .time {
        font-size: 0.85rem;
    }
    
    /* Layout stacks: only show one section at a time on mobile */
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .panel-section {
        display: none; /* Controlled by JS nav buttons */
        width: 100%;
        animation: fade-in var(--transition-norm) forwards;
    }
    
    .panel-section.active {
        display: flex;
    }
    
    .mobile-nav {
        display: grid; /* Show mobile tab navigation */
    }
    
    .radar-card {
        min-height: 350px;
    }
    
    .status-grid {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .status-mini-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .mini-val {
        font-size: 0.85rem;
    }
    
    .mini-lbl {
        font-size: 0.5rem;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .console-card {
        min-height: 400px;
    }
}

/* Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    .presets-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .radar-overlay-stats {
        font-size: 0.55rem;
        padding: 0.35rem;
    }
    
    .radar-legend {
        font-size: 0.5rem;
        gap: 0.4rem;
        padding: 0.25rem;
    }
}

/* Utilities */
.desktop-only {
    /* Grid visibility utilities */
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
}

.text-glow-cyan {
    color: var(--color-cyan);
    text-shadow: 0 0 6px var(--color-cyan-glow);
}

.text-glow-purple {
    color: var(--color-purple);
    text-shadow: 0 0 6px var(--color-purple-glow);
}

.text-glow-green {
    color: var(--color-green);
    text-shadow: 0 0 6px var(--color-green-glow);
}

.text-glow-amber {
    color: var(--color-amber);
    text-shadow: 0 0 6px var(--color-amber-glow);
}

.dot-pulse {
    color: var(--color-red);
    text-shadow: 0 0 4px var(--color-red-glow);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.15); }
}
