/* ============================================================
   VARIÁREIS E CONFIGURAÇÕES DO SITE PRINCIPAL
   ============================================================ */
:root {
    --bg-dark: #050505;
    --panel-bg: rgba(13, 17, 23, 0.9);
    --primary: #3ba935; /* Verde Tricagono */
    --text-main: #c9d1d9;
    --text-dim: #6e7681;
    --border: #21262d;
    --radius: 4px; /* Bordas retas conforme pedido */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
}

body { 
    background-color: #000; 
    color: var(--text-main); 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    height: 100vh; 
    width: 100vw;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

/* Título Estilo Site Principal */
.main-title { 
    text-align: center; 
    color: #ffffff; 
    letter-spacing: 10px; 
    font-size: 2.2rem;
    font-weight: 800;
    padding: 3vh 0;
    text-transform: uppercase;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
}

#dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    z-index: 10;
}

/* ============================================================
   PAINÉIS (ESTILO PANEL-BG)
   ============================================================ */
.gauge-card, .col { 
    background: var(--panel-bg); 
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    
    /* Removemos o "all" para evitar o zoom indesejado no load */
    /* Focamos a transição apenas no que vai mudar no hover */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    position: relative;
    overflow: hidden;
}

.gauge-card:hover, .col:hover {
    transform: translateY(-8px); /* Sobe 8 pixels */
    border-color: var(--primary); /* Brilha a borda em verde */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 169, 53, 0.2);
    z-index: 100; /* Garante que fique por cima dos outros ao subir */
}

/* Fileira das Rosquinhas */
.top-row { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    height: 32vh;
}

.gauge-card { 
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.gauge-container { 
    position: relative; 
    width: 100%; 
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-value { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -45%); 
    font-size: 5vh; 
    font-weight: 900; 
    color: var(--primary);
    text-shadow: 0 0 15px rgba(59, 169, 53, 0.3);
}

.gauge-label { 
    font-weight: 700; 
    font-size: 1.4vh; 
    color: var(--text-dim); 
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Colunas de Baixo */
.bottom-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    flex: 1;
    min-height: 0;
}

.col { 
    padding: 4vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

h2 { 
    font-size: 1.1rem; 
    color: #ffffff; 
    margin-bottom: 3vh; 
    text-transform: uppercase; 
    letter-spacing: 5px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* Barras de Temperatura Estilizadas */
.bar-container { margin-bottom: 4vh; width: 100%; }
.bar-label { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1rem; 
    margin-bottom: 8px; 
    color: var(--text-dim);
    font-weight: 500;
}
.bar-bg { background: rgba(0,0,0,0.5); height: 12px; border: 1px solid var(--border); border-radius: 2px; }
.bar-fill { 
    background: var(--primary); 
    height: 100%; 
    box-shadow: 0 0 10px rgba(59, 169, 53, 0.5);
}

/* Itens de Rede */
.net-item { 
    margin-bottom: 3vh; 
    border-left: 3px solid var(--primary); 
    padding-left: 20px; 
    background: rgba(0,0,0,0.3);
    padding: 15px 20px;
}
.net-item span { 
    display: block; 
    font-size: 0.9rem; 
    color: var(--text-dim); 
    text-transform: uppercase;
    letter-spacing: 2px;
}
.net-item strong { 
    font-size: 4vh; 
    color: #ffffff; 
    font-weight: 800;
}

/* Footer Estilo Site Principal */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

/* ============================================================
   VERSÃO CARROSSEL V2 (HEADER GIGANTE & ZOOM EM REDE/TEMP)
   ============================================================ */
@media (max-width: 1100px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background-color: #000 !important;
    }

    /* HEADER MONSTRUOSO */
    .main-title {
        font-size: 3.2rem !important; /* Aumentado */
        padding: 80px 10px !important; /* Muito mais espaço */
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #000 !important;
        border-bottom: 6px solid var(--primary);
        line-height: 1.1;
        text-transform: uppercase;
    }

    /* CARROSSEL UM POUCO MENOR EM ALTURA */
    .top-row {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0 !important;
        padding: 0 !important;
        height: 45vh !important; /* Diminuído para sobrar espaço embaixo */
        background: #080808; /* Leve destaque do fundo */
        -webkit-overflow-scrolling: touch;
    }

    .top-row::-webkit-scrollbar { display: none; }

    .gauge-card {
        flex: 0 0 100vw !important;
        height: 100% !important;
        scroll-snap-align: start !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .gauge-container canvas { display: none !important; }

    /* PORCENTAGEM GIGANTE NO CARROSSEL */
    .gauge-value {
        font-size: 160px !important; 
        font-weight: 900 !important;
        color: var(--primary) !important;
        line-height: 1 !important;
    }

    .gauge-label {
        font-size: 2.2rem !important;
        letter-spacing: 12px !important;
        margin-top: 10px !important;
    }

    /* SEÇÃO DE BAIXO (TEMPERATURA E REDE) - ZOOM MÁXIMO */
    .bottom-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 40px 15px !important;
        gap: 50px !important;
    }

    .col {
        width: 100% !important;
        min-height: 600px !important; /* Cards mais altos */
        background: var(--panel-bg) !important;
        border: 2px solid var(--border) !important;
        padding: 60px 25px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* TÍTULOS INTERNOS (TEMPERATURA / REDE) */
    h2 {
        font-size: 3rem !important; 
        margin-bottom: 60px !important;
        text-align: center !important;
        color: var(--primary) !important;
        border-bottom: 2px solid #333;
        padding-bottom: 20px;
    }

    /* BARRAS DE TEMPERATURA MASSIVAS */
    .bar-container { margin-bottom: 50px !important; }

    .bar-label {
        font-size: 2rem !important; /* Nome do componente */
        font-weight: 800 !important;
        margin-bottom: 20px !important;
    }

    .bar-bg {
        height: 90px !important; /* Barra muito mais grossa */
        background: #111 !important;
        border-radius: 15px !important;
    }

    #txt-temp-cpu, #txt-temp-gpu {
        font-size: 2.5rem !important; /* Valor da temperatura */
        font-weight: 900 !important;
        color: #fff !important;
    }

    /* TRÁFEGO DE REDE MONSTRUOSO */
    .net-item {
        padding: 50px 0 !important;
        border-bottom: 4px solid var(--primary) !important;
        text-align: center !important;
    }

    .net-item span {
        font-size: 1.8rem !important;
        letter-spacing: 6px !important;
        text-transform: uppercase !important;
    }

    .net-item strong {
        font-size: 6.5rem !important; /* Download/Upload enormes */
        display: block !important;
        margin-top: 25px !important;
        color: #fff !important;
        text-shadow: 0 0 20px rgba(255,255,255,0.2);
    }

    footer { padding: 120px 0 !important; font-size: 1.5rem !important; }
}

/* Ajuste fino para celulares pequenos */
@media (max-width: 450px) {
    .main-title { font-size: 2.5rem !important; padding: 60px 10px !important; }
    .gauge-value { font-size: 130px !important; }
    .net-item strong { font-size: 4.5rem !important; }
}