* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1e2e;
    --bg-secondary: #1a2942;
    --card-bg: #1e3247;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-white: #f0f6fc;
    --accent-purple: #bf46f3;
    --accent-blue: #4c66f4;
    --accent-cyan: #38bdf8;
    --accent-yellow: #FFD700;
    --gradient: linear-gradient(135deg, #bf46f3, #4c66f4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

/* Header Fixo */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* ATUALIZAÇÃO: Remove backdrop-filter e ajusta opacidade */
    background: rgba(15, 30, 46, 0.9); 
    z-index: 1000;
    padding: 1.2rem 3rem;
    border-bottom: 1px solid rgba(0, 246, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    mix-blend-mode: lighten;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo .neuro { color: var(--accent-cyan); }
.logo .race { color: var(--accent-yellow); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-vote-header {
    background: linear-gradient(135deg, var(--accent-cyan), #FF1493);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    display: none;
}

.btn-vote-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.6);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover { color: var(--accent-cyan); }

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    
    /* ATUALIZAÇÃO: Adicionado gradiente ciano-rosa e fonte */
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Padrão de style.css */
    /* Cores do style.css para o gradiente da imagem */
    background: linear-gradient(90deg, #00F6FF, #FF1493);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 0.5rem 0;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tooltip-icon {
    cursor: help;
    background: var(--accent-purple);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.sessions-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.session-date {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.session-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    gap: 1.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 2rem;
}

.incentive-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-purple);
    padding: 1.5rem;
    border-radius: 8px;
    font-style: italic;
}

.feedback-box h3 {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}
.feedback-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
}

.pilot-card {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
}
.pilot-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.pilot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.pilot-stat {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
}
.pilot-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}
.pilot-stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.record-box {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}
.global-avg {
    font-size: 0.8rem;
    color: var(--text-primary);
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}
.percentile-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent-yellow);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    display: none;
}

.fatigue-indicator {
    text-align: center;
    padding: 2rem;
}

.fatigue-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fatigue-label {
    font-size: 1.5rem;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
}

.error {
    background: #ff4444;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}
.error a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Menu Hamburger Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    line-height: 0;
}

.menu-toggle img {
    filter: drop-shadow(0 0 5px var(--accent-cyan)); 
    transition: filter 0.3s;
    width: 30px;
    height: 30px;
}

.menu-toggle:hover img {
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}


.menu-toggle span {
   display: none; 
}

/* Botão de Fechar Mobile */
.menu-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
    z-index: 1002;
}


@media (max-width: 768px) {
    header { padding: 1rem 2rem; }
    .menu-toggle { display: flex; }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        /* ATUALIZAÇÃO: Ajusta opacidade no mobile */
        background: rgba(15, 30, 46, 0.95); 
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-right.active { right: 0; }
    
    .menu-close-btn {
        display: block; 
    }
    
    .btn-vote-header {
        display: inline-flex;
        width: 90%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .nav-links { flex-direction: column; }
}

.nav-links a.active {
    color: var(--accent-cyan);
    font-weight: 700;
}