:root {
    --primary-color: #2563EB; /* Aiviro-like blue */
    --primary-hover: #1D4ED8;
    --secondary-color: #1F2937;
    --bg-color: #FFFFFF; /* Pure white background */
    --card-bg: #1E3A8A; /* Darker blue box */
    --card-bg-light: #2563EB; /* Lighter blue box */
    --text-color: #F9FAFB;
    --text-muted: #D1D5DB; /* Lighter text for blue background */
    --success: #10B981;
    --danger: #EF4444;
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color); /* White background */
    color: var(--text-color); /* Text inside blue boxes will remain white */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

.app-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-logo {
    height: 60px;
    object-fit: contain;
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.screen.active {
    display: block;
}

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

.glass-panel {
    background: var(--card-bg); /* Blue box */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Softer shadow on white */
}

.text-center {
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-box {
    background: rgba(255,255,255,0.1); /* Slightly transparent white on blue */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.input-group {
    margin-bottom: 24px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: #FFFFFF; /* White input inside blue box */
    border: 1px solid transparent;
    border-radius: 10px;
    color: #111827; /* Dark text for input */
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #A78BFA;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* On blue background, primary button can be a contrasting color or white */
.btn-primary {
    background: #FFFFFF;
    color: var(--card-bg);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Quiz Styles */
.quiz-header {
    margin-bottom: 30px;
}

.counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #FFFFFF;
    width: 0%;
    transition: width 0.4s ease;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.option-btn {
    text-align: left;
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.option-btn span.letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.option-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateX(4px);
}

.option-btn.selected {
    background: rgba(255,255,255,0.3);
    border-color: #FFFFFF;
    box-shadow: 0 0 0 1px #FFFFFF;
}

.option-btn.selected span.letter {
    background: #FFFFFF;
    color: var(--card-bg);
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
}

.quiz-footer .btn {
    width: auto;
    min-width: 120px;
}

/* Results */
.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.result-success { color: #34D399; }
.result-fail { color: #FCA5A5; }

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}
