/* ==========================================================================
   🏹 ARCHERY AUTOMATION CORE — TACTICAL HUD MODULE STYLESHEET
   File Name: server-dashboard.css (SilverArc Web-Cluster)
   ========================================================================== */

:root {
    --bg-deep: #020617;          /* Midnight command deck canvas */
    --card-glass: rgba(15, 23, 42, 0.45); /* Translucent sleek module backdrop */
    --neon-dispatch: #10b981;    /* Dynamic dispatcher green */
    --neon-patrol: #3b82f6;      /* Cruiser strobe blue */
    --neon-alert: #ef4444;       /* High-priority threat lock red */
    --text-muted: #64748b;       /* Clean telemetry gray text */
    --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* 🌀 Smooth Global Base Elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 🛸 Ambient Background Neon Strobe Glares */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    filter: blur(80px);
    z-index: -2;
}

/* 📡 Top Telemetry Status Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-container {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.25em;
    background: linear-gradient(to right, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 🎛️ Central Layout Matrix Hub */
.dashboard-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
}

/* 🛡️ Premium Glassmorphic Tactical Card */
.hud-card {
    max-width: 500px;
    width: 100%;
    background: var(--card-glass);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 28px;
    padding: 48px 40px;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.02);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 30px 70px -10px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(59, 130, 246, 0.03);
}

/* 🟢 Real-Time Interactive Radar Pulse Indicator */
.radar-pulse-box {
    width: 84px;
    height: 84px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px auto;
    font-size: 32px;
    position: relative;
}

.radar-pulse-box::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid var(--neon-patrol);
    opacity: 0.5;
    animation: radarPulse 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes radarPulse {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* 👤 Premium Post-Authentication Discord User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 18px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto 24px auto;
    backdrop-filter: blur(8px);
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--neon-patrol);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* 📜 Text Typographies */
h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(to bottom, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 36px;
    padding: 0 12px;
}

/* ⌨️ Monospace HUD Tactical Data Fields */
.hud-input-group {
    text-align: left;
    margin-bottom: 28px;
}

.hud-input-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.hud-input-field {
    width: 100%;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: all 0.25s ease;
}

.hud-input-field:focus {
    outline: none;
    border-color: var(--neon-dispatch);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
    background: rgba(2, 6, 23, 0.7);
}

/* ⚡ Cyber Dispatch Interactive Buttons */
.submit-btn {
    width: 100%;
    background: var(--neon-dispatch);
    color: #020617;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    transition: all 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}

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

/* 📋 Live Network Data Stream Badges */
.telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-dispatch);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--neon-dispatch);
}

/* 📁 Footer Component Styles */
footer {
    margin-top: auto;
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: #334155;
    border-top: 1px solid rgba(255, 255, 255, 0.01);
}

/* 🌐 Unified Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-left a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.nav-btn {
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

/* 🌆 Cinematic Neon Hero Section */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
}

.hero-content {
    max-width: 680px;
    animation: fadeIn 1.6s ease forwards;
    opacity: 0;
}

.hero-logo {
    width: 260px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 35px #6633cc);
    transition: transform 1.2s ease, filter 1.2s ease;
}

.hero-logo:hover {
    transform: translateY(-12px) scale(1.08);
    filter: drop-shadow(0 0 55px #ff4d94);
}

.neon-title {
    font-size: clamp(36px, 7vw, 70px);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ff4d94, #6633cc, #4d9cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonPulse 3.5s infinite alternate;
}

.neon-desc {
    font-size: 20px;
    color: #dcdcdc;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 12px rgba(102, 51, 204, 0.5);
}

/* ⚡ Interactive Buttons */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.neon-btn {
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 77, 148, 0.4);
    box-shadow: 0 0 14px rgba(255, 77, 148, 0.5), 0 0 22px rgba(102, 51, 204, 0.4);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.neon-btn:hover {
    border-color: #ff4d94;
    transform: translateY(-7px);
    box-shadow: 0 0 30px rgba(255, 77, 148, 0.9), 0 0 40px rgba(102, 51, 204, 0.8);
    color: #ffffff;
}

/* 🎬 Cinematic Keyframe Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes neonPulse {
    from { filter: drop-shadow(0 0 12px #ff4d94); }
    to { filter: drop-shadow(0 0 28px #4d9cff); }
}

/* 🗺️ Live Tactical Map Matrix */
.map-layout {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    align-items: flex-start;
    width: 100%;
}

.map-container {
    position: relative;
    flex: 1;
    max-width: 1100px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.map-container:active {
    cursor: grabbing;
}

.map-wrapper {
    position: relative;
    transform-origin: center center;
    transition: transform 0.05s linear;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
}

.map-image {
    width: 100%;
    display: block;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(255,77,148,0.4);
    user-select: none;
    pointer-events: none;
}

#player-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.player-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, outline 0.2s ease;
}

/* Team colors */
.dot-police { background: #4d9cff; }
.dot-sheriff { background: #ff4d4d; }
.dot-fire { background: #4dff4d; }
.dot-civilian { background: #ffd84d; }
.dot-dot { background: #ff8c00; }
.dot-other { background: #b84dff; }

/* Legend */
.map-legend {
    min-width: 220px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(102, 51, 204, 0.3);
    color: #f0f0f0;
    font-size: 14px;
    backdrop-filter: blur(12px);
}

.map-legend h3 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Controls */
.map-controls {
    max-width: 1400px;
    margin: 0 auto 16px auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.map-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.5);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.control-label {
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.map-control-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
}

.map-control-group input[type="text"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.7);
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-control-group input[type="text"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.btn.small {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 32px;
}
