:root {
    --primary-color: #2a5298;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --error-color: #dc3545;
    --text-color: #333;
    --light-text: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: #dee2e6;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

/* Card Styles */
.card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #117a8b;
}

/* Footer Styles */
footer {
    background-color: white;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Quiz Container Styles */
.quiz-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .quiz-container {
        padding: 20px 15px;
    }
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.badge-success, .badge-danger {
    padding: 5px 10px;
    font-size: 14px;
    color: white;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.pagination .page-link {
    color: #fff;
}

.pagination .active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Form Control Styles */
form .form-control {
    border-radius: 6px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    box-shadow: none;
    transition: all 0.3s ease;
}

form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(42, 82, 152, 0.25);
}

form label {
    font-weight: 500;
    margin-bottom: 5px;
}

/* Card Animation */
.card {
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}


.register-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.register-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 550px;
    width: 100%;
}

.register-header {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    padding: 1.5rem;
    text-align: center;
}

.register-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.register-body {
    padding: 2.5rem;
    background-color: white;
}

.register-form .form-control {
    height: 54px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #e2e6ea;
    background-color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.register-form .form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
    background-color: white;
    outline: none;
}

.register-form .form-control:hover:not(:focus) {
    border-color: #ced4da;
}

.register-btn {
    height: 54px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
    color: #fff;
}

.register-link {
    color: #2a5298;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.register-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.field-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-help {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-strength {
    height: 5px;
    border-radius: 2.5px;
    background-color: #e9ecef;
    margin-top: 0.5rem;
}

.strength-segment {
    height: 100%;
    border-radius: 2.5px;
    transition: all 0.3s ease;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    font-weight: 600;
}

.step.active {
    background-color: #2a5298;
    color: white;
}

.step-line {
    height: 2px;
    background-color: #e9ecef;
    flex-grow: 1;
    margin: 15px 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 1rem;
}

.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    padding: 1.5rem;
    text-align: center;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.login-body {
    padding: 2.5rem;
    background-color: white;
}

.login-form .form-control {
    height: 54px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #e2e6ea;
    background-color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.login-form .form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
    background-color: white;
    outline: none;
}

.login-form .form-control:hover:not(:focus) {
    border-color: #ced4da;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: #6c757d;
    z-index: 2;
}

.input-with-icon {
    padding-left: 45px !important;
}

.login-btn {
    height: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.login-link {
    color: #2a5298;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.login-separator::before {
    margin-right: 1rem;
}

.login-separator::after {
    margin-left: 1rem;
}

.login-icon {
    margin-right: 0.5rem;
}

.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: auto;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timer {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 30px;
}

.question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.options {
    list-style-type: none;
    padding: 0;
}

.option {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.option.selected {
    background-color: var(--primary-color);
    color:rgb(51, 51, 51);
    border-color: var(--primary-color);
}

.explanation {
    background-color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.result-container {
    text-align: center;
    padding: 30px;
    display: none;
}

.score {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.result-message {
    font-size: 20px;
    margin-bottom: 30px;
}

.quiz-card {
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    color: #6c757d;
}

.quiz-meta-item {
    margin-right: 15px;
    margin-bottom: 10px;
}

.quiz-meta-item i {
    margin-right: 5px;
}

.badge {
    padding: 5px 10px;
    font-size: 14px;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.result-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.result-stat {
    text-align: center;
    padding: 15px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #2a5298;
}

.result-label {
    color: #6c757d;
}

.question-review {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-review.correct {
    border-left: 5px solid #28a745;
}

.question-review.incorrect {
    border-left: 5px solid #dc3545;
}

.question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.choices {
    margin-bottom: 15px;
}

.choice {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
}

.choice.selected {
    background-color: #e9ecef;
}

.choice.correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.choice.incorrect {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.explanation {
    background-color: #f8f9fa;
    border-left: 4px solid #2a5298;
    padding: 15px;
    margin-top: 15px;
}

.action-buttons {
    margin-top: 30px;
    text-align: center;
}

.action-buttons .btn {
    margin: 0 10px;
}

.hero-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.stats-highlight {
    display: flex;
    flex-wrap: wrap;
}

.stat-item {
    margin-right: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.stat-item i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.quiz-card {
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.quiz-meta-item {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.benefits-section {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.benefit-card {
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-card {
    border-left: 4px solid var(--primary);
}

.testimonial-author {
    margin-top: 1rem;
    color: #666;
}

.final-cta {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-section .col-lg-5 {
        margin-top: 2rem;
    }

    .stat-item {
        margin-right: 1rem;
    }
}

/* New Alert Error Style */
.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-error .close {
    color: #bd2130;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-error .close:hover {
    opacity: 1;
}


.report-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.question-text {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.options-list ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

.options-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.info-box {
    background-color: #e9f7fe;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* For the report link in quiz questions */
.report-link {
    font-size: 0.85rem;
}

.report-link a {
    color: #777;
}
/* Add these styles to your main CSS file or include them in the <style> section in the template */

/* Review Mode Styling */
.mode-toggle {
    background-color: #f5f7fa;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.toggle-label {
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #495057;
    margin: 0 5px;
}

.toggle-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 10px rgba(42, 82, 152, 0.2);
}

.toggle-label:hover:not(.toggle-active) {
    background-color: rgba(42, 82, 152, 0.05);
    color: var(--primary-color);
}

.feedback-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    animation: fadeInUp 0.5s;
}

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

.feedback-correct {
    background-color: rgba(40, 167, 69, 0.08);
    border-left: 4px solid #28a745;
}

.feedback-incorrect {
    background-color: rgba(220, 53, 69, 0.08);
    border-left: 4px solid #dc3545;
}

.feedback-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.correct-icon {
    color: #28a745;
}

.incorrect-icon {
    color: #dc3545;
}

.explanation-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #6c757d;
}

.explanation-box h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.option.correct-answer {
    border: 2px solid #28a745 !important;
    background-color: rgba(40, 167, 69, 0.08);
}

.option.disabled {
    pointer-events: none;
    opacity: 0.8;
}

.next-btn-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 600;
    animation: pulse 1.5s infinite;
    z-index: 1000;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 82, 152, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(42, 82, 152, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 82, 152, 0); }
}
