/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.bg-primary{
    background-color: #4CAF50 !important;
}
.btn-primary{
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}
.btn-outline-primary{
    color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}
.btn-outline-primary:hover{
    background-color: #4CAF50 !important;
    color: white !important;
}
.card {
    border: none;
    border-radius: 15px;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* Timer Styles */
.timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    font-size: 1.1em;
}

.timer.warning {
    background: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Question Styles */
.question-slide {
    min-height: 400px;
}

.question-text {
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 500;
}

.question-header .badge {
    font-size: 0.8em;
    margin-right: 10px;
}

.rounded-end-circle{
    border-radius: 0 50px 50px 0 !important;
}
/* Option Styles */
.option-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    /* padding: 15px; */
    margin: 10px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    
    height: 58px;
}
.form-check-label strong {
    margin-right: 10px;
}

.option-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateX(5px);
}
.option-item input[type="radio"]:checked+label {
    color: #007bff;
    font-weight: 600;
}
.practice-item {
    color: #ffffff !important;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}
.form-check-input {
    position: absolute;
    margin-top: .3rem;
    margin-left: 0;
    display: none;
}
.form-check {
    padding-left:10px;
}
.form-check-label {
    cursor: pointer;
    font-size: 1em;
    line-height: 1.5;
    /* margin-left: 10px; */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Navigation Styles */
.navigation-buttons {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Question Navigator */
.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.question-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid #6c757d;
    transition: all 0.3s ease;
    padding:0px;
}

.question-nav:hover {
    transform: scale(1.1);
}

.question-nav.answered {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.question-nav.current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.question-nav.flagged {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    position: relative;
}

.question-nav.flagged::after {
    content: '⚑';
    position: absolute;
    font-size: 8px;
    top: -3px;
    right: -3px;
    background: #dc3545;
    color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav.flex-row .nav-item {
        margin-right: 15px !important;
    }

    .timer {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .question-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .navigation-buttons>div {
        display: flex;
        gap: 10px;
    }
    .bg-light{padding-top: 40px;
    }
}

/* Results Styles */
.result-card {
    border-left: 5px solid #28a745;
}

.result-card.incorrect {
    border-left: 5px solid #dc3545;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin: 0 auto;
}

.score-excellent {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.score-good {
    background: linear-gradient(45deg, #007bff, #6610f2);
}

.score-average {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.score-poor {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
}

/* Loading and Animation */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Exam Info Styles */
.exam-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.exam-info ul li {
    padding: 5px 0;
    font-size: 1.1em;
}

.exam-info i {
    width: 20px;
    margin-right: 10px;
}

/* Alert Customization */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Sticky Navigation */
.sticky-top {
    top: 80px !important;
}

/* Custom Scrollbar */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}