/* =========================================
   BIO-OS SYSTEM - CORE STYLES (Fase 4 - Usability Patch)
   ========================================= */

:root {
    --bio-bg-dark: #121212;
    --bio-bg-card: #1e1e1e;
    --bio-text-main: #ffffff;
    --bio-text-muted: #a5a5a5;
    --bio-accent: #00ff9d;      /* Verde Neon */
    --bio-accent-hover: #00cc7d;
    --bio-danger: #ff4757;
    --bio-border-radius: 8px;
}

/* --- CONTAINER PRINCIPAL --- */
.bio-os-dashboard, .bio-os-container {
    background-color: var(--bio-bg-dark);
    color: var(--bio-text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--bio-border-radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

/* --- HEADER / NAV --- */
.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.bio-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- NAVEGAÇÃO ABAS --- */
.bio-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #000;
    padding: 5px;
    border-radius: 8px;
}

.bio-nav-item {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.bio-nav-item.active {
    background: var(--bio-accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

/* --- CARDS E SEÇÕES --- */
.bio-card {
    background: var(--bio-bg-card);
    padding: 25px;
    border-radius: var(--bio-border-radius);
    border: 1px solid #333;
}

/* --- FORMULÁRIOS E SLIDERS --- */
.form-group { margin-bottom: 25px; }
label { display: block; margin-bottom: 10px; color: var(--bio-text-muted); font-size: 0.9rem; }

.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #000;
    padding: 15px;
    border-radius: 50px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--bio-accent);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px var(--bio-accent);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

.range-value {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--bio-accent);
    min-width: 30px;
    text-align: center;
}

/* --- BOTÕES DE AÇÃO --- */
.bio-btn-action, .bio-btn-primary {
    background: var(--bio-accent);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bio-btn-action:hover, .bio-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.4);
}

/* --- QUIZ & MAPEADOR (CORREÇÕES VISUAIS) --- */

/* Barra de Progresso */
.bio-progress-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.bio-progress-fill {
    height: 100%;
    background: var(--bio-accent);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--bio-accent);
}

/* Perguntas e Opções */
.bio-question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #fff;
}

.bio-options {
    display: flex;
    flex-direction: column; /* EMPILHAR BOTÕES */
    gap: 15px;              /* ESPAÇO ENTRE ELES */
}

.bio-option-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ddd;
    padding: 15px 20px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.bio-option-btn:hover {
    border-color: var(--bio-accent);
    background: #333;
    color: #fff;
    transform: translateX(5px);
}

/* Tela de Resultados e Barras */
.bio-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.bio-chart-box, .bio-scores-list {
    flex: 1;
    min-width: 300px;
}

.bio-score-item {
    margin-bottom: 20px;
}

.bio-score-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.bio-value { color: var(--bio-accent); }

/* BARRAS DE RESULTADO (As que estavam invisíveis) */
.bio-bar-bg {
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.bio-bar-fill {
    height: 100%;
    background: var(--bio-accent); /* Agora tem cor! */
    width: 0%;                     /* JS vai preencher */
    transition: width 1s ease-out;
}

/* Loading */
.bio-loader {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}
.bio-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--bio-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsivo */
@media (max-width: 600px) {
    .bio-result-grid { flex-direction: column; }
    .bio-header { flex-direction: column; gap: 15px; text-align: center; }
}