:root {
    --neon-cyan: #00f2ff;
    --neon-pink: #ff00ff;
    --dark-bg: #050505;
    --widget-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(0, 242, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

/* --- EFFETS DE FOND --- */
.crt-overlay::before {
    content: " ";
    position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 100;
    pointer-events: none;
}

.scanline {
    width: 100%; height: 100px;
    background: linear-gradient(0deg, rgba(0, 242, 255, 0) 0%, rgba(0, 242, 255, 0.1) 50%, rgba(0, 242, 255, 0) 100%);
    position: fixed;
    animation: scanline 8s linear infinite;
    z-index: 101;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* --- HEADER --- */
.dash-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
}

.glitch { font-weight: 900; letter-spacing: 5px; }

/* --- GRID SYSTEM --- */
.dash-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.widget {
    background: var(--widget-bg);
    border: 1px solid var(--border);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.widget.large { grid-column: span 2; }
.widget.tall { grid-row: span 2; }

.widget-title {
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 10px;
}

/* --- ANIMATIONS SPECIFIQUES --- */
.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100px;
}

.bar {
    flex: 1;
    background: var(--neon-cyan);
    animation: barGrow 2s ease-in-out infinite alternate;
}

@keyframes barGrow {
    0% { height: 20%; opacity: 0.3; }
    100% { height: 80%; opacity: 1; }
}

.bar:nth-child(even) { animation-duration: 1.5s; background: var(--neon-pink); }

.log-console {
    font-size: 0.8rem;
    height: 100%;
    overflow-y: hidden;
    color: #00ff41; /* Vert  pour les logs */
}

.tag {
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
}
.online { background: rgba(0, 242, 255, 0.2); border: 1px solid var(--neon-cyan); }
.warning { color: orange; animation: blink 1s infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* --- FEEDBACK COMMANDES --- */
.cmd-feedback {
    animation: cmdFlash 0.3s ease-out;
}

@keyframes cmdFlash {
    0% { background: rgba(0, 242, 255, 0.1); }
    100% { background: transparent; }
}

/* --- FOOTER --- */
.dash-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.terminal-input input {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-family: inherit;
    width: 300px;
    outline: none;
}

.dash-nav a {
    color: var(--neon-cyan);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    padding: 5px 10px;
}

.dash-nav a:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 15px var(--neon-cyan);
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr 1fr;
        overflow-y: auto;
    }
}
