/* Modern Ninja Sage Dashboard - Glassmorphism Design System */
:root {
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --primary-neon: #a78bfa;
    --secondary-neon: #38bdf8;
    --acc-medic: #10b981;
    --acc-assault: #8b5cf6;
    --acc-hq: #f59e0b;
    --acc-ambush: #64748b;
    --acc-kage: #ef4444;
}

body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Modern Leaderboard Table */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.modern-table tr {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modern-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.modern-table td, .modern-table th {
    padding: 1rem;
}

.modern-table th {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Squad Badges */
.squad-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-medic { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.squad-assault { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.squad-hq { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.squad-ambush { background: rgba(100, 116, 139, 0.1); color: #94a3b8; }
.squad-kage { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* Dynamic RGB Glow */
@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rgb-glow {
    background-size: 200% auto;
    animation: glowing 5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Ruffle Shell */
.ruffle-shell {
    width: 768px;
    height: 440px;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--glass-border);
}

/* SSE Status Indicator */
.sse-status {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 100;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.status-dot.online { background: #10b981; box-shadow: 0 0 10px #10b981; }
.status-dot.offline { background: #ef4444; }
