:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --surface-color: #ffffff;
    --bg-color: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.glass-card {
    background: var(--surface-color);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.quiz-card {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.question-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.option-label:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.option-label.selected {
    background-color: #eff6ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.option-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    margin-right: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s;
}

.option-label.selected .option-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.questions-nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.question-navigation {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.question-navigation::-webkit-scrollbar {
    display: none;
}

.question-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
}

.question-number:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.question-number.active {
    border-color: var(--primary-color, #3b82f6);
    background-color: #eff6ff;
    color: var(--primary-color, #3b82f6);
    font-weight: 600;
}

.question-number.answered {
    background-color: var(--success-color, #10b981);
    border-color: var(--success-color, #10b981);
    color: white;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

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

/* Optional: Add shadow for scroll indication */
.questions-nav-container {
    position: relative;
}

.questions-nav-container::after {
    content: '';
    position: absolute;
    right: 50px; /* Adjust based on button width */
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.questions-nav-container.scrollable::after {
    opacity: 1;
}

#quiz-interface .row {
    height: calc(100vh - 100px);
}

#quiz-interface .glass-card {
    height: 100%;
}

.overflow-auto {
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.progress {
    height: 8px;
    border-radius: 4px;
}

.badge {
    padding: 8px 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .question-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .option-label {
        padding: 12px;
    }
}
