/* Access Materials Custom Styles */

.curriculum-card, .level-card, .specialization-card, .combination-card, .class-card, .subject-card, .pathway-card, .olevel-pathway-card, .vtc-sector-card, .vtc-specialization-card, .vtc-level-card, .reb-alevel-branch-card, .general-education-stream-card, .ttc-year-card, .tvet-alevel-sector-card, .tvet-alevel-path-card, .tvet-alevel-level-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.curriculum-card:hover, .level-card:hover, .specialization-card:hover, .combination-card:hover, .class-card:hover, .subject-card:hover, .pathway-card:hover, .olevel-pathway-card:hover, .vtc-sector-card:hover, .vtc-specialization-card:hover, .vtc-level-card:hover, .reb-alevel-branch-card:hover, .general-education-stream-card:hover, .ttc-year-card:hover, .tvet-alevel-sector-card:hover, .tvet-alevel-path-card:hover, .tvet-alevel-level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.curriculum-card.selected, .level-card.selected, .specialization-card.selected, .combination-card.selected, .class-card.selected, .pathway-card.selected, .olevel-pathway-card.selected, .vtc-sector-card.selected, .vtc-specialization-card.selected, .vtc-level-card.selected, .reb-alevel-branch-card.selected, .general-education-stream-card.selected, .ttc-year-card.selected, .tvet-alevel-sector-card.selected, .tvet-alevel-path-card.selected, .tvet-alevel-level-card.selected {
    border-color: #06BBCC;
    background-color: #f8f9ff;
}

.chapter-card, .paper-card, .quiz-card, .question-card, .quiz-set-card, .book-card, .practice-session-card {
    transition: all 0.3s ease;
}

.chapter-card:hover, .paper-card:hover, .quiz-card:hover, .question-card:hover, .quiz-set-card:hover, .book-card:hover, .practice-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-card .card-body {
    padding: 1rem;
}

/* Real Practice Results Styling */
.result-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.result-correct {
    border-color: #28a745;
    background-color: #f8fff9;
}

.result-incorrect {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.answer-comparison {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #06BBCC;
}

.explanation-section {
    margin-top: 10px;
}

.results-container {
    max-height: 600px;
    overflow-y: auto;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
}

.performance-feedback {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.book-card img {
    max-height: 200px;
}

.timer-display {
    font-size: 1.1rem;
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-check-label {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.form-check-label:hover {
    background-color: #f8f9fa;
}

.form-check-input:checked + .form-check-label {
    background-color: #e3f2fd;
    font-weight: 500;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.practice-results {
    max-width: 800px;
    margin: 2rem auto;
}

.chapter-text, .book-text, .paper-text {
    line-height: 1.6;
    font-size: 1rem;
}

.chapter-text h4, .book-text h4, .paper-text h4 {
    color: #06BBCC;
    margin-bottom: 1rem;
}

.chapter-text h5, .book-text h5, .paper-text h5 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.chapter-text h6, .book-text h6, .paper-text h6 {
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.exam-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
}

.instructions {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #06BBCC;
}

.question {
    border-left: 3px solid #28a745;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.question h6 {
    color: #28a745;
    font-weight: bold;
}

.section-a, .section-b {
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 5px;
    background-color: #fdfdfd;
}

.exam-footer {
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
    font-weight: bold;
}

.detailed-results {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fafafa;
}

.subject-nav {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.subject-nav .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.subject-nav .nav-link.active {
    background-color: #06BBCC;
    color: white;
}

.subject-nav .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    color: #495057;
}

.chapter-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.book-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-content {
    padding: 20px;
}

.quiz-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 4px solid #06BBCC;
}

.quiz-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.quiz-question h6 {
    color: #495057;
    margin-bottom: 10px;
}

.practice-session {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.practice-timer {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.practice-question {
    background: white;
    color: #333;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.practice-options {
    list-style: none;
    padding: 0;
}

.practice-options li {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-options li:hover {
    background: #e9ecef;
}

.practice-options li.selected {
    background: #06BBCC;
    color: white;
}

.practice-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.score-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.score-good {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.score-average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.score-poor {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.payment-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-method {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #06BBCC;
    background-color: #f8f9ff;
}

.payment-method.selected {
    border-color: #06BBCC;
    background-color: #f8f9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .subject-nav .nav-link {
        margin-right: 5px;
        margin-bottom: 5px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .practice-session {
        padding: 20px;
    }
    
    .payment-card {
        padding: 20px;
    }
}

/* 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 { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}