/* DESIGN SYSTEM X3: Prata, Preto e Vermelho Neon */
:root {
    --black: #000000;
    --glass: rgba(12, 12, 12, 0.85);
    --brand-red: #FF0033;
    --brand-glow: rgba(255, 0, 51, 0.15);
    --silver: #E0E0E0;
    --green: #00E676;
    --orange: #FF9100;
    --red: #FF1744;
    --text-dim: #7A7A7A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 0, 51, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--black); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 0% 0%, var(--brand-glow) 0%, transparent 40%),
                      radial-gradient(circle at 100% 100%, var(--brand-glow) 0%, transparent 40%);
    padding: 60px 40px;
}

.container { max-width: 1400px; margin: 0 auto; }

header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 30px;
}

.brand-section { display: flex; align-items: center; gap: 25px; }
.logo-img { height: 85px; filter: drop-shadow(0 0 15px rgba(255, 0, 51, 0.4)); transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }

.brand-text h1 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1; text-transform: uppercase;}
.brand-text h1 span { color: var(--brand-red); text-shadow: 0 0 10px var(--brand-glow); }
.brand-text p { font-size: 12px; text-transform: uppercase; letter-spacing: 5px; color: var(--silver); margin-top: 5px; }

.system-time { text-align: right; font-family: 'Space Grotesk', sans-serif; color: var(--silver); }
.system-time small { color: var(--brand-red); letter-spacing: 2px; font-weight: 600;}

.info-panel {
    background: linear-gradient(145deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.8) 100%); 
    border: 1px solid var(--border); border-left: 3px solid var(--brand-red); border-radius: 4px;
    padding: 20px 25px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.info-text h4 { color: var(--silver); font-size: 14px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.info-text p { color: var(--text-dim); font-size: 13px; max-width: 600px; line-height: 1.5; }

.legend-boxes { display: flex; gap: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ddd; font-weight: 600; }
.l-box { width: 14px; height: 14px; border-radius: 2px; }
.l-green { background: var(--green); box-shadow: 0 0 8px rgba(0, 230, 118, 0.3); }
.l-orange { background: var(--orange); box-shadow: 0 0 8px rgba(255, 145, 0, 0.3); }
.l-red { background: var(--red); box-shadow: 0 0 8px rgba(255, 23, 68, 0.3); }

.monitor-list { display: flex; flex-direction: column; gap: 15px; }

.server-row {
    background: var(--glass); border: 1px solid var(--border); border-radius: 4px; padding: 25px;
    display: grid; grid-template-columns: 280px 1fr 180px; align-items: center; gap: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(10px);
}
.server-row:hover { border-color: var(--border-hover); background: rgba(18, 18, 18, 0.95); transform: scale(1.005); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.info-col h3 { font-size: 20px; font-weight: 600; margin-bottom: 5px; color: #fff;}
.info-col .metrics { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.info-col b { color: var(--silver); }

.timeline-col { position: relative; }

.timeline-scroll {
    display: flex; gap: 3px; overflow-x: auto; padding-bottom: 10px;
    scrollbar-width: thin; scrollbar-color: var(--text-dim) transparent; cursor: grab; 
}
.timeline-scroll:active { cursor: grabbing; }
.timeline-scroll::-webkit-scrollbar { height: 3px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 10px; }

.tick { flex: 1; min-width: 6px; height: 35px; border-radius: 2px; transition: all 0.2s; cursor: pointer; }
.tick.operacional { background: var(--green); }
.tick.instavel { background: var(--orange); }
.tick.offline { background: var(--red); }
.tick:hover { transform: scaleY(1.3); filter: brightness(1.2); z-index: 2; box-shadow: 0 0 10px currentColor;}

.status-col { text-align: right; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 2px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border: 1px solid;
}
.badge.online { color: var(--green); border-color: rgba(0, 230, 118, 0.3); background: rgba(0, 230, 118, 0.05); }
.badge.offline { color: var(--red); border-color: rgba(255, 23, 68, 0.3); background: rgba(255, 23, 68, 0.05); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.smart-tooltip {
    position: absolute; top: 0; left: 0; background: rgba(8, 8, 8, 0.98);
    border: 1px solid var(--border); padding: 12px 15px; border-radius: 6px; font-size: 12px;
    color: #fff; pointer-events: none; opacity: 0; transform: translate(-50%, -100%);
    transition: opacity 0.2s ease, margin-top 0.2s ease; box-shadow: 0 15px 30px rgba(0,0,0,0.9);
    z-index: 9999; backdrop-filter: blur(5px); margin-top: -5px; min-width: 180px; text-align: center;
}
.smart-tooltip.visible { opacity: 1; margin-top: -12px; }
.tooltip-date { color: var(--silver); font-size: 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.tooltip-status { font-weight: 800; display: block; margin-top: 4px; font-size: 13px; }

footer { margin-top: 100px; text-align: center; padding: 40px; border-top: 1px solid var(--border); }
footer p { color: var(--text-dim); font-size: 12px; letter-spacing: 2px; }

/* EFEITO NOIR / TEXTURA INDUSTRIAL (Film Grain) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Garante que o usuário consiga clicar nos itens do site normalmente */
    z-index: 9998; /* Fica por cima do fundo, mas não atrapalha o Tooltip */
    
    /* Geração de ruído estático matemático */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    
    /* Opacidade calculada para ser sutil e elegante */
    opacity: 0.04;
}