/**
 * InovaSaúde - Estilos da Área do Usuário
 * Visual identity matching Landing Page (dark, glassmorphism, particles)
 */

:root {
    --bg-primary: #09090b;
    --bg-secondary: #111114;
    --bg-tertiary: #18181b;
    --bg-card: #18181b;
    --bg-hover: #1f1f23;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
    --accent-glow: rgba(139, 92, 246, 0.15);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --border: #27272a;
    --border-hover: #3f3f46;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================================
   PARTICLES CANVAS
   ================================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ================================================
   SURVEY CONTAINER
   ================================================ */
.survey-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ================================================
   HEADER (glassmorphism nav like landing)
   ================================================ */
.survey-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.survey-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.survey-header .logo-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    perspective: 400px;
}

.survey-header .logo-icon {
    width: 36px;
    height: 36px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    transform-style: preserve-3d;
}

.survey-header .logo-icon-wrap:hover .logo-icon {
    transform: rotateY(12deg) rotateX(-8deg) scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(139, 92, 246, 0.5));
}

.survey-header .logo i {
    font-size: 24px;
    color: var(--accent);
}

.survey-header .logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ================================================
   SURVEY CONTENT
   ================================================ */
.survey-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* ================================================
   HERO ENTRY (landing page style)
   ================================================ */
.hero-entry {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
}

.hero-entry-inner {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 32px;
    animation: heroFadeInUp 0.8s ease;
}

.hero-badge i {
    font-size: 14px;
}

.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: heroFadeInUp 0.8s ease 0.1s both;
}

.hero-title .gradient-text {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: heroFadeInUp 0.8s ease 0.2s both;
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Code form in hero */
.hero-code-form {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    animation: heroFadeInUp 0.8s ease 0.3s both;
}

.hero-input-group {
    position: relative;
}

.hero-input-wrap {
    position: relative;
}

.hero-input-wrap .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s;
    pointer-events: none;
    z-index: 2;
}

.hero-input-wrap input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition);
}

.hero-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 20px rgba(139, 92, 246, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.hero-input-wrap input:focus ~ .input-icon {
    color: var(--accent);
}

.hero-input-wrap input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 400;
    font-size: 15px;
}

.hero-submit-btn {
    width: 100%;
}

/* Inline field error (same as landing page login) */
.field-error-msg {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #fca5a5;
    animation: fieldErrorIn 0.3s ease;
}

.field-error-msg i {
    color: var(--danger);
    font-size: 13px;
    flex-shrink: 0;
}

.hero-input-group.has-error .hero-input-wrap input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    animation: fieldShake 0.4s ease;
}

.hero-input-group.has-error .field-error-msg {
    display: flex;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes fieldErrorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Trust badges */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroFadeInUp 0.8s ease 0.4s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-trust-item i {
    color: rgba(139, 92, 246, 0.5);
    font-size: 14px;
}

@media (max-width: 640px) {
    .hero-entry {
        padding: 40px 16px 32px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .hero-code-form {
        margin-bottom: 36px;
    }
}

/* ================================================
   BUTTONS (matching landing page)
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

/* Shimmer effect like landing login button */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before {
    display: none;
}

/* ================================================
   STATE SCREENS (error, answered, no-questions)
   ================================================ */
.error-state,
.already-answered,
.no-questions {
    text-align: center;
    max-width: 420px;
    padding: 56px 40px;
}

.error-state i,
.no-questions i {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.already-answered i {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

.error-state h2,
.already-answered h2,
.no-questions h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.error-state p,
.already-answered p,
.no-questions p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
}

/* ================================================
   SLIDES
   ================================================ */
.slide {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   WELCOME SLIDE (glassmorphism)
   ================================================ */
.welcome-slide {
    text-align: center;
    padding: 64px 40px;
}

.welcome-icon {
    width: 88px;
    height: 88px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

.welcome-icon i {
    font-size: 36px;
    color: white;
}

.welcome-slide h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.welcome-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.welcome-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
}

/* ================================================
   QUESTION SLIDE (glassmorphism)
   ================================================ */
.question-slide {
    padding: 36px;
}

/* ================================================
   PROGRESS BAR
   ================================================ */
.progress-container {
    margin-bottom: 28px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================
   QUESTION HEADER
   ================================================ */
.question-header {
    margin-bottom: 20px;
}

.question-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* ================================================
   QUESTION CONTENT
   ================================================ */
.question-content {
    margin-bottom: 28px;
}

.question-content h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.question-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ================================================
   QUESTION INPUTS
   ================================================ */
.question-input {
    margin-bottom: 28px;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    resize: none;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 20px rgba(139, 92, 246, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.open-input {
    min-height: 120px;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ================================================
   CHOICE OPTIONS (multiple choice)
   ================================================ */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.choice-option:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.choice-option.selected {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.choice-option input {
    display: none;
}

.choice-option .choice-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.choice-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition);
    font-size: 11px;
    flex-shrink: 0;
}

.choice-option.selected .choice-check {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ================================================
   RATING INPUT
   ================================================ */
.rating-input {
    text-align: center;
}

.rating-input .rating-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 8px;
}

.rating-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-btn {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.rating-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.08);
}

.rating-btn.selected {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* ================================================
   QUESTION ACTIONS (nav buttons)
   ================================================ */
.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.submit-btn {
    flex: 1;
    max-width: 220px;
}

/* ================================================
   COMPLETE SLIDE (glassmorphism)
   ================================================ */
.complete-slide {
    text-align: center;
    padding: 72px 40px;
}

.complete-icon {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.complete-icon i {
    font-size: 48px;
    color: var(--success);
}

.complete-slide h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--success);
    letter-spacing: -0.02em;
}

.complete-slide p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.7;
}

.complete-sub {
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

/* ================================================
   SKELETON LOADING
   ================================================ */
@keyframes skeletonWave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sk-loading {
    background: linear-gradient(90deg, #18181b 0%, #27272a 25%, #2d2d35 50%, #27272a 75%, #18181b 100%);
    background-size: 200% 100%;
    animation: skeletonWave 1.5s linear infinite;
    border-radius: 8px;
}

.survey-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 400px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
    .survey-content {
        padding: 16px;
    }

    .code-entry {
        padding: 40px 24px;
    }

    .welcome-slide {
        padding: 40px 24px;
    }

    .welcome-slide h1 {
        font-size: 24px;
    }

    .welcome-icon {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .welcome-icon i {
        font-size: 30px;
    }

    .question-slide {
        padding: 24px;
    }

    .question-content h2 {
        font-size: 19px;
    }

    .rating-btn {
        width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .question-actions {
        flex-direction: column;
    }

    .question-actions .btn {
        width: 100%;
        max-width: none;
    }

    .complete-slide {
        padding: 56px 24px;
    }

    .complete-icon {
        width: 88px;
        height: 88px;
    }

    .complete-icon i {
        font-size: 40px;
    }

    .complete-slide h1 {
        font-size: 26px;
    }

    .error-state,
    .already-answered,
    .no-questions {
        padding: 40px 24px;
    }
}

@media (max-width: 400px) {
    .rating-buttons {
        gap: 8px;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ================================================
   QUIZ OPTIONS
   ================================================ */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.quiz-option:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.quiz-option input {
    display: none;
}

.quiz-option .quiz-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.quiz-option .quiz-feedback {
    display: none;
    font-size: 18px;
}

.quiz-option .quiz-feedback .correct-icon { display: none; color: var(--success); }
.quiz-option .quiz-feedback .wrong-icon { display: none; color: var(--danger); }

/* Quiz - Resposta Correta */
.quiz-option.correct {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
    animation: quizCorrect 0.5s ease;
}

.quiz-option.correct .quiz-feedback {
    display: flex;
}

.quiz-option.correct .quiz-feedback .correct-icon {
    display: block;
}

/* Quiz - Resposta Errada */
.quiz-option.wrong {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
    animation: fieldShake 0.4s ease;
}

.quiz-option.wrong .quiz-feedback {
    display: flex;
}

.quiz-option.wrong .quiz-feedback .wrong-icon {
    display: block;
}

/* Quiz - Mostrar a correta quando errar */
.quiz-option.show-correct {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.06);
}

.quiz-option.show-correct .quiz-feedback {
    display: flex;
}

.quiz-option.show-correct .quiz-feedback .correct-icon {
    display: block;
}

/* Quiz respondido - desabilitar interação */
.quiz-options.answered .quiz-option {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-options.answered .quiz-option.correct,
.quiz-options.answered .quiz-option.wrong,
.quiz-options.answered .quiz-option.show-correct {
    opacity: 1;
}

@keyframes quizCorrect {
    0% { transform: scale(1); }
    30% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ================================================
   YES/NO OPTIONS
   ================================================ */
.yesno-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.yesno-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    max-width: 200px;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yesno-option input {
    display: none;
}

.yesno-option i {
    font-size: 32px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.yesno-option span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.yesno-option:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Sim selecionado */
.yesno-yes.selected {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.03);
}

.yesno-yes.selected i {
    color: var(--success);
}

.yesno-yes.selected span {
    color: var(--success);
}

/* Não selecionado */
.yesno-no.selected {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.03);
}

.yesno-no.selected i {
    color: var(--danger);
}

.yesno-no.selected span {
    color: var(--danger);
}

@media (max-width: 480px) {
    .yesno-option {
        padding: 20px 16px;
    }
    .yesno-option i {
        font-size: 26px;
    }
    .yesno-option span {
        font-size: 16px;
    }
}

/* ================================================
   INLINE VALIDATION (question inputs)
   ================================================ */
.question-input.has-error .text-input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    animation: fieldShake 0.4s ease;
}

.question-input.has-error .choice-option,
.question-input.has-error .quiz-option,
.question-input.has-error .yesno-option {
    border-color: rgba(239, 68, 68, 0.3);
    animation: fieldShake 0.4s ease;
}

.question-input.has-error .rating-btn:not(.selected) {
    border-color: rgba(239, 68, 68, 0.3);
    animation: fieldShake 0.4s ease;
}

.question-input.has-error::after {
    content: 'Por favor, responda a pergunta antes de continuar.';
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fca5a5;
    animation: fieldErrorIn 0.3s ease;
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 420px;
    padding: 18px 20px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.toast-notification.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-notification.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px) translateY(-10px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.toast-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 var(--radius-sm);
    animation: toastProgress 4.5s linear forwards;
}

.toast-error .toast-progress {
    background: var(--danger);
}

.toast-success .toast-progress {
    background: var(--success);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 480px) {
    .toast-notification {
        left: 16px;
        right: 16px;
        min-width: auto;
        max-width: none;
        top: 16px;
    }
}
