/* Custom CSS for Solved MCQs Page */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .display-4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Filter Section */
.filter-section {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-label {
    color: #495057;
    font-size: 0.9rem;
}

.form-select, .form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* MCQ Cards */
.mcq-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.mcq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.mcq-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1rem;
}

.mcq-card .card-body {
    padding: 1.5rem;
}

.mcq-card .question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mcq-card .options-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}



.mcq-card .options-list li:hover {
    background: #e9ecef;
    border-color: #6c757d;
}

.mcq-card .options-list li.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.mcq-card .options-list li.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.mcq-card .options-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background: white;
}

.mcq-card .options-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    padding-left: 3rem; /* Add left padding to make space for the button */
}

.mcq-card .options-list li.correct::before {
    background: #28a745;
    border-color: #28a745;
}

.mcq-card .options-list li.incorrect::before {
    background: #dc3545;
    border-color: #dc3545;
}

.mcq-card .answer-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #0d6efd;
}

.mcq-card .answer-section h6 {
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.mcq-card .tags {
    margin-top: 1rem;
}

.mcq-card .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mcq-card .tag.organization {
    background: #d1ecf1;
    color: #0c5460;
}

.mcq-card .tag.category {
    background: #d4edda;
    color: #155724;
}

/* Pagination */
.pagination .page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Loading and No Results */
#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

#noResults i {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-stats .row {
        margin: 0 -0.5rem;
    }
    
    .hero-stats .col-md-4 {
        padding: 0 0.5rem;
    }
    
    .filter-section .col-md-3,
    .filter-section .col-md-4,
    .filter-section .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .mcq-card .card-body {
        padding: 1rem;
    }
    
    .mcq-card .question-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .mcq-card .options-list li {
        padding: 0.5rem 0.75rem;
        padding-left: 2.5rem; /* Adjust left padding for mobile */
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}
