:root {
    --toni-navy: #0a0f1d;
    --toni-gunmetal: #121826;
    --toni-magenta: #d946ef;
    --toni-purple: #7e22ce;
    --toni-cyan: #22d3ee;
    --toni-text: #f8fafc;
    --toni-text-muted: #94a3b8;
    --panel-bg: rgba(18, 24, 38, 0.72);
    --panel-border: rgba(255, 255, 255, 0.08);
    --glow-magenta: rgba(217, 70, 239, 0.15);
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 200ms ease-in-out;
}

body {
    background: var(--toni-navy);
    color: var(--toni-text);
    font-family: var(--font-primary);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Glow Zones */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(126, 34, 206, 0.04), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(217, 70, 239, 0.03), transparent 30%),
        radial-gradient(circle at 50% 10%, rgba(34, 211, 238, 0.02), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Atmospheric Vignette */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 15vw rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 1000;
}

header {
    padding: 1rem 2rem;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1001; /* Above vignette */
}

h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    margin: 0;
    color: var(--toni-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

h1 small {
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--toni-cyan);
    text-transform: uppercase;
}

.toni-shell {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Tactical Glass Panels */
.card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.8), rgba(10, 15, 29, 0.6));
    backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 25px rgba(126, 34, 206, 0.03);
}

.card:hover {
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 
        0 0 30px var(--glow-magenta),
        inset 0 0 35px rgba(217, 70, 239, 0.06);
    transform: translateY(-2px);
}

.card h2 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--toni-magenta);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
}

.card h2::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(217, 70, 239, 0.4), transparent);
    margin-left: 1rem;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.online {
    color: var(--toni-cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.offline {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border: none;
}

.btn-toggle {
    background: transparent;
    border: 1px solid var(--toni-magenta);
    color: var(--toni-magenta);
}

.btn-toggle:hover {
    background: var(--toni-magenta);
    color: var(--toni-navy);
    box-shadow: 0 0 15px var(--glow-magenta);
}

.btn-approve {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.btn-approve:hover {
    background: #22c55e;
    color: white;
}

.btn-deny {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-deny:hover {
    background: #ef4444;
    color: white;
}

.insight-item {
    border-left: 4px solid var(--toni-purple);
    padding-left: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    border-radius: 0 4px 4px 0;
}

.insight-item small {
    font-family: var(--font-mono);
    color: var(--toni-cyan);
}

.integration-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid var(--panel-border);
}

.integration-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

ul { list-style: none; padding: 0; margin: 0; }
li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--toni-text-muted);
}

.warning-banner {
    background: #ef4444;
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    display: none;
    position: sticky;
    top: 0;
    z-index: 2000;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--toni-navy); }
::-webkit-scrollbar-thumb { background: var(--toni-purple); border-radius: 2px; }

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

.toni-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 6px var(--glow-magenta));
}

.toni-presence {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--panel-border);
    transition: var(--transition);
}

.presence-core {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ember {
    width: 4px;
    height: 4px;
    background: var(--toni-magenta);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--toni-magenta);
    animation: ember-breathe 4s infinite ease-in-out;
}

.halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--toni-purple);
    border-radius: 50%;
    opacity: 0;
    animation: halo-ripple 4s infinite ease-out;
}

.presence-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--toni-cyan);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    opacity: 0.7;
    white-space: nowrap;
}

@keyframes ember-breathe {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px var(--toni-magenta); }
}

@keyframes halo-ripple {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.toni-presence:hover .presence-status {
    opacity: 1;
    color: white;
}

@media (max-width: 600px) {
    .toni-presence {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.5rem;
    }
}

.empty-state {
    color: var(--toni-text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.5;
    letter-spacing: 0.05rem;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
