.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
    opacity: 0.9;
}


/* VARIÁVEIS E TEMA */

:root {
    /* Cores - Light Mode */
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-main: #1A1A1B;
    --text-sub: #636E72;
    --primary-color: #0984E3;
    --primary-hover: #0773C5;
    --border-color: #DFE6E9;
    --chip-bg: #F1F2F6;

    /* Status */
    --success: #00B894;
    --error: #D63031;
    --warning: #FDCB6E;

    /* Sombras e Bordas */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dark {
    /* Cores - Dark Mode */
    --bg-color: #0F0F10;
    --surface-color: #1E1E1E;
    --text-main: #FFFFFF;
    --text-sub: #B2BEC3;
    --primary-color: #4DABF7;
    --primary-hover: #74C0FC;
    --border-color: #2D3436;
    --chip-bg: #2D3436;
    --shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* RESET E BASE */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    padding-top: 80px;
    /* Espaço para a Navbar fixa */
}

.hidden {
    display: none !important;
}

/*LAYOUT COMPONENTES */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--primary-color);
}

.theme-toggle {
    background: var(--chip-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.theme-toggle:active {
    transform: scale(0.9);
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* TELA INICIAL (START SCREEN) */
.card-ui {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero p {
    color: var(--text-sub);
    margin-bottom: 32px;
}

.config-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sub);
}

.question-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chip {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--chip-bg);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--primary-color);
}

.chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

/* TELA DO QUIZ */

.quiz-header {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

#progress-text {
    font-weight: 700;
    font-size: 1.1rem;
}

#percentage-text {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-card h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.option {
    background: var(--surface-color);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

.option:hover {
    border-color: var(--primary-color);
    background: rgba(77, 171, 247, 0.05);
    transform: translateX(4px);
}

.option.selected {
    border-color: var(--primary-color);
    background: rgba(77, 171, 247, 0.1);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

/* FOOTER NAVEGAÇÃO */

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btns {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-finish {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/* RESULTADOS E REVISÃO */

.result-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.score-card {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 140px;
}

.score-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.review-item {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    border-left: 6px solid var(--border-color);
    box-shadow: var(--shadow);
}

.correct-border {
    border-left-color: var(--success);
}

.wrong-border {
    border-left-color: var(--error);
}

.review-item p {
    margin-bottom: 8px;
}

/* RESPONSIVIDADE */

@media (max-width: 650px) {
    .navbar {
        padding: 0 20px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .nav-btns {
        width: 100%;
    }

    .nav-btns button {
        flex: 1;
    }

    .btn-finish {
        width: 100%;
    }
}