/* CME Quiz System - Public Styles */

:root {
    --primary: #d5cbc3 !important;
    --secondary: #374151 !important;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --heading-font: 'Manrope', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--body-font);
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.card-title,
.navbar-brand,
.btn,
.badge {
    font-family: var(--heading-font);
}

/* Bootstrap Override - Primary Color */
.bg-primary {
    background-color: #d5cbc3 !important;
}

.btn-primary {
    background-color: #d5cbc3 !important;
    border-color: #d5cbc3 !important;
    color: #374151 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c4b8af !important;
    border-color: #c4b8af !important;
    color: #374151 !important;
}

.badge-primary,
.badge.bg-primary {
    background-color: #d5cbc3 !important;
    color: #374151 !important;
}

.text-primary {
    color: #d5cbc3 !important;
}

.border-primary {
    border-color: #d5cbc3 !important;
}

/* Bootstrap Override - Secondary Color */
.bg-secondary {
    background-color: #374151 !important;
}

.btn-secondary {
    background-color: #374151 !important;
    border-color: #374151 !important;
}

.text-secondary {
    color: #374151 !important;
}

/* Navbar adjustments for light background */
.navbar.bg-primary {
    background-color: #d5cbc3 !important;
}

.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .nav-link {
    color: #374151 !important;
}

.navbar.bg-primary .nav-link:hover {
    color: #1f2937 !important;
}

.navbar.bg-primary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Quiz Cards */
.quiz-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.quiz-card .card-body {
    padding: 1.5rem;
}

.badge-cme {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Quiz Form */
.quiz-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.question-card {
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.question-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.answer-option {
    margin-bottom: 1rem;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option label {
    display: block;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.answer-option label:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.answer-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: #e7f1ff;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Result Page */
.result-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.result-score {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
}

.result-badge {
    font-size: 1.5rem;
    padding: 1rem 2rem;
}

.certificate-preview {
    border: 3px solid var(--success);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    background: white;
}

/* Buttons */
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .question-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .answer-option label {
        padding: 0.8rem 1rem;
    }
}

