:root {
    /* Core Colors */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #0f1923;
    --bg-card-hover: #162030;
    
    /* Accent Colors */
    --accent-green: #00ff88;
    --accent-green-dim: #00cc6a;
    --accent-green-glow: rgba(0, 255, 136, 0.15);
    --accent-blue: #00d4ff;
    --accent-blue-dim: #00a3cc;
    --accent-blue-glow: rgba(0, 212, 255, 0.15);
    --accent-red: #ff453a;
    --accent-red-dim: #cc362e;
    --accent-red-glow: rgba(255, 69, 58, 0.15);
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd60a;
    --accent-purple: #bf5af2;
    
    /* Text Colors */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Border Colors */
    --border-primary: rgba(0, 255, 136, 0.15);
    --border-secondary: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 255, 136, 0.3);
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #00ff88, #00d4ff);
    --gradient-red: linear-gradient(135deg, #ff453a, #ff6b35);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(15, 25, 35, 0.6));
    
    /* Shadows */
    --shadow-glow-green: 0 0 20px rgba(0, 255, 136, 0.1), 0 0 60px rgba(0, 255, 136, 0.05);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.1), 0 0 60px rgba(0, 212, 255, 0.05);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-green);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-glow-green);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-green);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-green-glow);
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
}

.login-logo h1 {
    font-size: 1.5rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-green);
    color: var(--bg-primary);
    padding: 14px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent-green);
    background: var(--bg-card-hover);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: var(--accent-red-dim);
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.login-error {
    background: var(--accent-red-glow);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Top Menu Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-green);
    letter-spacing: 0.04em;
}

.top-bar-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green-glow);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.top-bar-nav {
    display: flex;
    gap: 4px;
    list-style: none;
}

.top-bar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.top-bar-nav a:hover,
.top-bar-nav a.active {
    color: var(--accent-green);
    background: var(--accent-green-glow);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: blink 2s ease-in-out infinite;
}

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

.top-bar-clock {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    min-width: 65px;
}

.top-bar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.top-bar-user:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar - Teilnehmer */
.sidebar-left {
    width: 280px;
    background: rgba(15, 25, 35, 0.6);
    border-right: 1px solid var(--border-secondary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header .count-badge {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Participant Cards */
.teilnehmer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 8px;
    cursor: default;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.teilnehmer-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.teilnehmer-card[data-status="aktiv"]::before { background: var(--accent-green); }
.teilnehmer-card[data-status="im_einsatz"]::before { background: var(--accent-blue); }
.teilnehmer-card[data-status="offline"]::before { background: var(--text-muted); }
.teilnehmer-card[data-status="inaktiv"]::before { background: var(--accent-yellow); }

.teilnehmer-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.teilnehmer-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.teilnehmer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
    position: relative;
}

.teilnehmer-avatar .status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.status-indicator.aktiv { background: var(--accent-green); }
.status-indicator.im_einsatz { background: var(--accent-blue); animation: blink 1.5s ease-in-out infinite; }
.status-indicator.offline { background: var(--text-muted); }
.status-indicator.inaktiv { background: var(--accent-yellow); }

.teilnehmer-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.teilnehmer-info .rufzeichen {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    font-weight: 500;
}

.teilnehmer-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.teilnehmer-meta span {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Right Content Area */
.content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mission Panel (Top Right) */
.mission-panel {
    background: rgba(15, 25, 35, 0.6);
    border-bottom: 1px solid var(--border-secondary);
    padding: 20px 24px;
    flex-shrink: 0;
}

.mission-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mission-header h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-kritisch {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.badge-hoch {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-mittel {
    background: rgba(255, 214, 10, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 214, 10, 0.3);
}

.badge-aktiv {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-geplant {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.mission-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.mission-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.mission-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mission-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mission-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.mission-stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-green);
}

.mission-stat-value.countdown {
    color: var(--accent-red);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mission-objective {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-green);
}

.mission-objective-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mission-objective p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Map Panel (Bottom Right) */
.map-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.9), transparent);
    z-index: 1000;
    pointer-events: none;
}

.map-header > * {
    pointer-events: auto;
}

.map-header h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.map-controls button {
    padding: 6px 14px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    backdrop-filter: blur(8px);
}

.map-controls button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.map-controls button.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: var(--accent-green-glow);
}

#attackMap {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

/* Map Markers */
.server-marker {
    position: relative;
}

.server-marker-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.server-marker-inner:hover {
    transform: scale(1.3);
}

.server-marker-inner.eigen {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.server-marker-inner.feind {
    background: var(--accent-red);
    box-shadow: 0 0 12px rgba(255, 69, 58, 0.5);
}

.server-marker-inner.neutral {
    background: var(--accent-yellow);
    box-shadow: 0 0 12px rgba(255, 214, 10, 0.5);
}

.server-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1;
    animation: marker-pulse 2s ease-out infinite;
}

.server-marker-pulse.eigen { background: rgba(0, 255, 136, 0.2); }
.server-marker-pulse.feind { background: rgba(255, 69, 58, 0.2); }

@keyframes marker-pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.server-popup {
    font-family: var(--font-main);
    min-width: 200px;
}

.server-popup h3 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.server-popup .meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.server-popup .meta span {
    display: block;
    padding: 2px 0;
}

.server-popup .ip {
    font-family: var(--font-mono);
    color: var(--accent-green);
}

/* Bottom Bar */
.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
    z-index: 100;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bottom-bar-actions {
    display: flex;
    gap: 8px;
}

.bottom-bar-actions button {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-bar-actions button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.bottom-bar-actions button.strike-btn {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: var(--accent-red);
}

.bottom-bar-actions button.strike-btn:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: var(--accent-red);
}

.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bottom-bar-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.alert-level {
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.alert-level.green { background: var(--accent-green-glow); color: var(--accent-green); }
.alert-level.yellow { background: rgba(255, 214, 10, 0.15); color: var(--accent-yellow); }
.alert-level.red { background: var(--accent-red-glow); color: var(--accent-red); animation: blink 1s ease-in-out infinite; }

/* Attack Animation Overlay */
.attack-line {
    stroke-dasharray: 8, 4;
    animation: dash 1s linear infinite;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes dash {
    to { stroke-dashoffset: -12; }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 1.5rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    overflow-x: auto;
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.admin-tab.active {
    color: var(--accent-green);
    background: var(--accent-green-glow);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-card-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-secondary);
    font-weight: 600;
}

.data-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.data-table .mono {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 0.8rem;
}

.data-table .actions {
    display: flex;
    gap: 6px;
}

.data-table .actions button {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.data-table .actions button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.data-table .actions button.delete:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.online,
.status-badge.aktiv { background: var(--accent-green-glow); color: var(--accent-green); }
.status-badge.online::before,
.status-badge.aktiv::before { background: var(--accent-green); }

.status-badge.im_einsatz { background: var(--accent-blue-glow); color: var(--accent-blue); }
.status-badge.im_einsatz::before { background: var(--accent-blue); }

.status-badge.offline,
.status-badge.inaktiv { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }
.status-badge.offline::before,
.status-badge.inaktiv::before { background: var(--text-muted); }

.status-badge.kompromittiert { background: var(--accent-red-glow); color: var(--accent-red); }
.status-badge.kompromittiert::before { background: var(--accent-red); }

/* Forms in Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow-green);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal select,
.modal textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    outline: none;
}

.modal select:focus,
.modal textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.modal textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Server type colors in table */
.type-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.eigen { background: var(--accent-green-glow); color: var(--accent-green); }
.type-badge.feind { background: var(--accent-red-glow); color: var(--accent-red); }
.type-badge.neutral { background: rgba(255, 214, 10, 0.15); color: var(--accent-yellow); }

/* Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 99999;
    box-shadow: var(--shadow-glow-green);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

/* Leaflet overrides for dark theme */
.leaflet-container {
    background: var(--bg-primary) !important;
    font-family: var(--font-main) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-card) !important;
}

.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-tertiary) !important;
    color: var(--accent-green) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 14, 23, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar-left {
        width: 240px;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar-left {
        width: 100%;
        max-height: 200px;
    }
    .sidebar-list {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
    }
    .teilnehmer-card {
        min-width: 200px;
        margin-bottom: 0;
    }
    .mission-stats {
        gap: 12px;
    }
}
