/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-email {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--background);
    border-radius: var(--radius);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

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

.nav-link.logout {
    color: var(--error-color);
}

.nav-link.logout:hover {
    background: #fef2f2;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Flash Messages */
.flash-messages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.flash-success {
    background: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.login-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.login-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.login-info {
    text-align: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dashboard-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Tabs */
.tab-container {
    margin-bottom: 2rem;
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn:not(.active):hover {
    background: var(--background);
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Exam Categories */
.exam-category {
    margin-bottom: 3rem;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.exam-grid, .skills-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}


/* Cards */
.exam-card, .skill-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.exam-card:hover, .skill-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.exam-card-header, .skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exam-card-header h3, .skill-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 1rem;
}

.exam-badge, .skill-level {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-badge {
    background: var(--primary-color);
    color: white;
}

.skill-beginner {
    background: #dbeafe;
    color: #1e40af;
}

.skill-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.skill-advanced {
    background: #fee2e2;
    color: #b91c1c;
}

.exam-card-body, .skill-card-body {
    margin-bottom: 1.5rem;
}

.exam-card-body p, .skill-card-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.exam-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exam-meta span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-tag, .topic-pill {
    background: var(--background);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.topic-pill {
    background: var(--primary-color);
    color: white;
}

.topic-tag.more {
    background: var(--secondary-color);
    color: white;
}

/* Action Buttons */
.exam-card-actions, .skill-card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.start-btn {
    background: var(--success-color);
    color: white;
}

.start-btn:hover {
    background: #15803d;
}

.video-btn {
    background: var(--primary-color);
    color: white;
}

.video-btn:hover {
    background: var(--primary-dark);
}

.pdf-btn {
    background: var(--error-color);
    color: white;
}

.pdf-btn:hover {
    background: #b91c1c;
}

/* Skills Section */
.skills-header {
    text-align: center;
    margin-bottom: 2rem;
}

.skills-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skills-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 0;
}

.modal-body iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Exam Page */
.exam-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.exam-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.exam-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exam-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exam-type-badge, .skill-level-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-type-badge {
    background: var(--primary-color);
    color: white;
}

.exam-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.exam-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* Info Panel */
.exam-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card, .topics-card, .actions-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.info-card h3, .topics-card h3, .actions-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.video-btn {
    background: var(--primary-color);
    color: white;
}

.video-btn:hover {
    background: var(--primary-dark);
}

.pdf-btn {
    background: var(--error-color);
    color: white;
}

.pdf-btn:hover {
    background: #b91c1c;
}

.start-exam-btn {
    background: var(--success-color);
    color: white;
}

.start-exam-btn:hover {
    background: #15803d;
}

.btn-icon {
    font-size: 1.125rem;
}

/* Main Panel */
/* .exam-main-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 600px;
}

.exam-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    text-align: center;
    padding: 2rem;
} */

.placeholder-content {
    max-width: 400px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.placeholder-tip {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

/* Exam Active State */
.exam-active {
    padding: 1.5rem;
}

.exam-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.timer-section, .progress-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timer-label, .progress-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.timer {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.progress-bar {
    width: 200px;
    height: 0.5rem;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
}

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

.progress-text {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 3rem;
    text-align: right;
}

.exam-workspace {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.workspace-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.end-exam-btn {
    padding: 0.5rem 1rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.end-exam-btn:hover {
    background: #b91c1c;
}

.workspace-content {
    padding: 1.5rem;
}

.workspace-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.workspace-content ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.workspace-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .exam-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .exam-info-panel {
        order: 2;
    }
    
    .exam-main-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .user-email {
        display: none;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .exam-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .exam-title-section h1 {
        font-size: 2rem;
    }
    
    .exam-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-card-actions, .skill-card-actions {
        flex-direction: column;
    }
    
    .exam-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .modal-content {
        width: 95vw;
        margin: 1rem;
    }
    
    .modal-body iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .dashboard-container, .exam-container {
        padding: 0 0.5rem;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .resource-actions .resource-btn {
        text-align: center;
    }
}


/* Exam Filter Navigation Styles */
.exam-filter-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.exam-filter-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-filter-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exam-filter-btn.active {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-color: #1a73e8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.exam-filter-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(6px);
}

/* Responsive Design for Filter Buttons */
@media (max-width: 768px) {
    .exam-filter-nav {
        flex-direction: row;
        gap: 0.5rem;
        margin: 1.5rem 0;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .exam-filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-width: 80px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .exam-filter-nav {
        gap: 0.3rem;
        margin: 1rem 0;
    }
    
    .exam-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* Animation for exam category transitions */
.exam-category {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.exam-category[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

.exam-category[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

/* Blue color scheme for all exam types (matching your tab design) */
.exam-filter-btn[data-exam-type="EST1"].active {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-color: #1a73e8;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.exam-filter-btn[data-exam-type="EST2"].active {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-color: #1a73e8;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.exam-filter-btn[data-exam-type="SAT"].active {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-color: #1a73e8;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

/* Signup Page */
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}

.signup-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.signup-header p {
    color: var(--text-secondary);
}

.signup-form .form-group {
    margin-bottom: 1.5rem;
}

.signup-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.signup-form input:focus,
.signup-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.signup-form input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.signup-form .form-group label input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 0.3rem;
}

.price-summary {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-summary p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price-summary ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 1.2rem;
}

.signup-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

/* Responsive adjustments for signup page */
@media (max-width: 768px) {
    .signup-card {
        padding: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 1.5rem;
    }
}

/* Container Styling */
.package-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Headings */
.package-container h1 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.package-container h3 {
    margin: 20px 0 10px;
    color: #34495e;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s ease-in-out;
}

.checkbox-group label:hover {
    background: #eef2f7;
    border-color: #aaa;
}

/* Price display */
.price-box {
    margin: 20px 0;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f4f6f8;
    text-align: center;
    font-size: 1.1rem;
    color: #2d3436;
    font-weight: 600;
}

/* Submit button */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    color: #fff;
    background: #3498db;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

button[type="submit"]:hover {
    background: #2980b9;
}

/* Responsive */
@media (max-width: 600px) {
    .package-container {
        margin: 20px;
        padding: 15px;
    }
    .checkbox-group {
        flex-direction: column;
    }
}

.payment-container,
.signup-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.signup-header h1 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.signup-header p {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
}

.price-summary {
    background: #f4f6f8;
    padding: 15px 20px;
    border-radius: 8px;
    color: #2d3436;
}

.price-summary ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.price-summary ul li {
    padding: 4px 0;
    font-size: 0.95rem;
}

.payment-options {
    margin-top: 1rem;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
}

.payment-method h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 0.3rem;
}

.payment-method p {
    color: #555;
    margin-bottom: 0.5rem;
}

.payment-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.instapay-qr-wrapper {
    text-align: center;
    margin-top: 0.5rem;
}

.instapay-qr {
    width: 270px;
    height: 270px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.payment-instructions {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #444;
}

.payment-instructions strong {
    color: #2c3e50;
}

.payment-actions {
    text-align: center;
    margin-top: 2rem;
}

.signup-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease-in-out;
}

.signup-btn:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 600px) {
    .signup-container {
        margin: 20px;
        padding: 15px;
    }

    .instapay-qr {
        width: 150px;
        height: 150px;
    }
}

.disabled {
    pointer-events: none;
    color: gray;
    opacity: 0.6;
}

.plan-card {
    transition: all 0.3s ease;
}
.plan-card:hover {
    border-color: #007BFF; /* Bootstrap blue or adjust as needed */
    background-color: #f0f8ff; /* Light blue background */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Profile Page Styling */
.profile-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.profile-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-container h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
}

/* Tabs */
.tab-nav-pf {
    display: flex;
    border-bottom: none;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #ecf0f1;
    padding: 5px;
    gap: 5px;
}

.tab-btn-pf {
    flex: 1;
    padding: 12px 0;
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 0 #2980b9;
}

.tab-btn-pf:hover {
    background: #d6eaf8;
    color: #2980b9;
}

.tab-btn-pf.active {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(41, 128, 185, 0.3);
    transform: scale(1.02);
}


/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
}

.profile-form label {
    font-weight: 600;
    margin-top: 15px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.profile-form input,
.profile-form select {
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    transition: border 0.2s ease, background 0.2s ease;
}

.profile-form input:focus,
.profile-form select:focus {
    border-color: #007bff;
    background: #fff;
    outline: none;
}

/* Buttons */
.btn-save {
    margin-top: 25px;
    padding: 12px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-save:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

/* Plan Section */
#plan-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.btn-upgrade {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(40, 125, 167, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, #2272a7, #2587c8);
    transform: translateY(-2px);
}

.upgrade-warning {
    margin-top: 2px;
    font-size: 10px;
    color: #ff0000; /* Dark red */
    font-weight: 200;
}

/* =====================================================
   EXAM SESSION STYLES - COMPLETE PAGE
   ===================================================== */

/* Main container */
.exam-session-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Exam session header */
.exam-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.session-info h1 {
    font-size: 1.75rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.session-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Session controls */
.session-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timer-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.timer-label {
    color: #666;
    font-weight: 500;
}

.timer {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    font-family: 'Courier New', monospace;
    min-width: 80px;
}

.end-session-btn {
    padding: 0.75rem 1.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.end-session-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Progress bar container */
.progress-bar-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.progress-text {
    font-weight: 600;
    color: #333;
    min-width: 60px;
    text-align: right;
}

/* Main exam workspace layout */
.exam-workspace {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.workspace-content {
    flex: 1;
}

.exam-content-area {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Exam sidebar */
.exam-sidebar {
    width: 280px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
}

.exam-sidebar h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Question container */
.question-container {
    background: white;
    padding: 2.5rem;
    min-height: 400px;
}

.question-number {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

/* Answer options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    padding: 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.answer-option:hover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateX(5px);
}

.answer-option.selected {
    border-color: #007bff;
    background: #e7f3ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.answer-option.correct {
    border-color: #28a745;
    background: #d4edda;
}

.answer-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.option-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.answer-option:hover .option-label {
    background: #007bff;
    color: white;
}

.answer-option.selected .option-label {
    background: #007bff;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
}

/* Navigation controls */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem 2.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.question-counter {
    font-weight: 500;
    color: #333;
    font-size: 1.05rem;
}

/* Question navigator grid */
.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.question-nav-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.question-nav-btn:hover {
    background: #f0f8ff;
    border-color: #007bff;
    color: #007bff;
}

.question-nav-btn.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.question-nav-btn.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.question-nav-btn.answered:not(.current) {
    background: #28a745;
    border-color: #28a745;
}

/* Exam actions */
.exam-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.submit-exam-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Explanation box */
.explanation {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    animation: slideIn 0.3s ease;
}

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

.explanation strong {
    color: #0056b3;
    display: block;
    margin-bottom: 0.5rem;
}

/* No questions message */
.no-questions-message {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-questions-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.no-questions-message .btn {
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.no-questions-message .btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Exam results */
.exam-results {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.exam-results h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.exam-results p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #666;
}

.return-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.return-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive design for exam session */
@media (max-width: 1024px) {
    .exam-session-container {
        padding: 1rem;
    }
    
    .exam-workspace {
        flex-direction: column;
    }
    
    .exam-sidebar {
        width: 100%;
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .exam-session-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .session-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .question-container {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    
    .navigation-controls {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .question-counter {
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    .nav-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .timer {
        font-size: 1.25rem;
    }
    
    .end-session-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .answer-option {
        padding: 1rem;
    }
    
    .option-label {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .question-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Loading states */
.question-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.question-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Math equation styling */
.question-text mjx-container,
.option-text mjx-container {
    display: inline-block !important;
    margin: 0 0.2em;
}

.question-text mjx-container[display="true"] {
    display: block !important;
    margin: 1em 0 !important;
    text-align: center;
}

/* Accessibility improvements */
.answer-option:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.question-nav-btn:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .exam-session-header,
    .progress-bar-container,
    .exam-sidebar,
    .navigation-controls {
        display: none;
    }
    
    .exam-workspace {
        display: block;
    }
    
    .question-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .answer-option {
        break-inside: avoid;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .exam-session-container {
        background: #1a1a1a;
    }
    
    .exam-session-header,
    .progress-bar-container,
    .exam-content-area,
    .exam-sidebar,
    .question-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .session-info h1,
    .question-text,
    .option-text,
    .question-counter {
        color: #e0e0e0;
    }
    
    .timer-label,
    .progress-label,
    .question-number {
        color: #b0b0b0;
    }
    
    .progress-bar {
        background: #3a3a3a;
    }
    
    .answer-option {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .answer-option:hover {
        background: #3a3a3a;
        border-color: #007bff;
    }
    
    .navigation-controls {
        background: #3a3a3a;
        border-top-color: #444;
    }
    
    .question-nav-btn {
        background: #3a3a3a;
        border-color: #444;
        color: #b0b0b0;
    }
    
    .question-nav-btn:hover {
        background: #444;
    }
    
    .explanation {
        background: #2a3f5f;
        border-left-color: #4a90e2;
    }
}

/* Additional utility classes */
.exam-session-container .text-muted {
    color: #6c757d;
}

.exam-session-container .text-danger {
    color: #dc3545;
}

.exam-session-container .text-success {
    color: #28a745;
}

.exam-session-container .text-primary {
    color: #007bff;
}

/* Animation for question transitions */
.question-fade-enter {
    opacity: 0;
    transform: translateX(20px);
}

.question-fade-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.question-fade-exit {
    opacity: 1;
    transform: translateX(0);
}

.question-fade-exit-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

/* Tooltip styles for question navigator */
.question-nav-btn {
    position: relative;
}

.question-nav-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.question-nav-btn:hover::after {
    opacity: 1;
}

/* Score display animation */
@keyframes scoreReveal {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.exam-results p:first-of-type {
    animation: scoreReveal 0.5s ease;
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin: 1.5rem 0;
}

/* Success/failure indicators */
.exam-results.pass {
    border-top: 4px solid #28a745;
}

.exam-results.fail {
    border-top: 4px solid #dc3545;
}

/* Custom scrollbar for exam sidebar */
.exam-sidebar::-webkit-scrollbar {
    width: 8px;
}

.exam-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.exam-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.exam-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Badge variations */
.session-badge.practice {
    background: #28a745;
}

.session-badge.est1 {
    background: #6f42c1;
}

.session-badge.est2 {
    background: #fd7e14;
}

.session-badge.sat {
    background: #20c997;
}

/* Keyboard navigation indicators */
.keyboard-focus .answer-option:focus,
.keyboard-focus .question-nav-btn:focus,
.keyboard-focus .nav-btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* End of exam session styles */

/* =====================================================
   EXAM SESSION - IMPROVED STYLES
   ===================================================== */

/* Session controls with dual buttons */
.session-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.submit-exam-btn {
    padding: 0.75rem 1.5rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-exam-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Improved Question Navigator */
.question-navigator-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-navigator-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

/* Question status legend */
.question-status-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.current {
    background: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.legend-dot.answered {
    background: #28a745;
}

.legend-dot.unanswered {
    background: #e9ecef;
    border: 2px solid #dee2e6;
}

/* Improved question grid */

.question-nav-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: 2px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-nav-btn:hover {
    background: #f0f8ff;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.question-nav-btn.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.question-nav-btn.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.question-nav-btn.answered:not(.current) {
    background: #28a745;
    border-color: #28a745;
}

.question-nav-btn.answered:not(.current):hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
}

/* Tooltip for question navigator */
.question-nav-btn[data-tooltip] {
    position: relative;
}

.question-nav-btn[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0.9;
    pointer-events: none;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

.question-nav-btn[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: 0.25rem;
}

/* Remove submit button from sidebar since it's moved to header */
.exam-sidebar .exam-actions {
    display: none;
}

/* Responsive adjustments for improved layout */
@media (max-width: 1024px) {
    .session-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .exam-session-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .session-controls {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
        width: auto;
        gap: 0.5rem;
    }
    
    .submit-exam-btn,
    .end-session-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .question-navigator-card {
        padding: 1rem;
    }
    
    .question-status-legend {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* .question-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.5rem;
    } */
    
    .question-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: row;
        width: 100%;
    }
    
    .submit-exam-btn,
    .end-session-btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    
    .question-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Additional visual improvements */
.exam-sidebar {
    width: 380px;
    background: transparent;
    padding: 10px;
}

.question-nav-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    background: transparent;
    z-index: -1;
}

.question-nav-btn.current::before {
    background: rgba(0, 123, 255, 0.1);
}

.question-nav-btn.answered::before {
    background: rgba(40, 167, 69, 0.1);
}

/* Smooth transitions for question navigation */
.question-nav-btn {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Visual feedback for keyboard navigation */
.question-nav-btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

.question-nav-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Progress indicator on question buttons */
.question-nav-btn.answered::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #28a745;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Highlight unanswered questions when hovering submit button */
.submit-exam-btn:hover ~ .exam-workspace .question-nav-btn:not(.answered) {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        border-color: #dee2e6;
    }
    50% {
        border-color: #ffc107;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    }
}

/* Improved exam results styling */
.exam-results {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.exam-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007bff 0%, #28a745 50%, #ffc107 100%);
}

.exam-results h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.exam-results p:first-of-type {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 2rem 0;
}

.exam-results p:last-of-type {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Ensure proper stacking context */
.exam-session-container {
    position: relative;
    z-index: 1;
}

.exam-session-header {
    position: relative;
    z-index: 10;
}

.promo-code-group {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.promo-code-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 0.5rem;
}

#apply-promo-button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#apply-promo-button:hover {
    background-color: #0056b3;
}

#apply-promo-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.disabled-option {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.disabled-option input[type="checkbox"] {
    cursor: not-allowed !important;
}

.disabled-option .option-text {
    text-decoration: line-through;
    color: #999;
}

.coming-soon-badge {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 10px;
}

.disabled-option:hover::after {
    content: "Coming Soon";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1000;
}

.disabled-option:hover::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    z-index: 1000;
}
/* Update these styles in styles.css */

.completion-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;  /* Full width to ensure it's on its own row */
}

.score-badge, .attempts-badge {
    background: #22c55e;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.score-badge {
    background-color: #22c55e;
}

.attempts-badge {
    background: #16a34a;
}

.retake-btn {
    background: #22c55e;
    color: white;
    flex: 1;
}

.retake-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

/* Lighter green gradient for completed cards */
.exam-card.completed,
.skill-card.completed,
.exam-card:has(.completion-badge),
.skill-card:has(.completion-badge) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ea 100%);
    border: 1px solid #4ade80;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

/* Remove the checkmark */
.exam-card.completed .exam-card-header::after,
.skill-card.completed .skill-card-header::after {
    display: none;
}

/* Restructure card actions to ensure badges on top, buttons below */
.exam-card-actions,
.skill-card-actions {
    display: flex;
    flex-direction: column;  /* Stack vertically */
    gap: 8px;
}

/* Button row container */
.exam-card-actions > a,
.exam-card-actions > button,
.skill-card-actions > a,
.skill-card-actions > button {
    flex: 1;
}

/* Create a flex container for buttons when there are completion badges */
.exam-card:has(.completion-badge) .exam-card-actions,
.skill-card:has(.completion-badge) .skill-card-actions {
    display: flex;
    flex-direction: column;
}

/* Button row styling - side by side */
.exam-card:has(.completion-badge) .exam-card-actions > a,
.exam-card:has(.completion-badge) .exam-card-actions > button,
.skill-card:has(.completion-badge) .skill-card-actions > a,
.skill-card:has(.completion-badge) .skill-card-actions > button {
    display: inline-block;
}

/* For cards without completion badge - keep buttons side by side */
.exam-card:not(:has(.completion-badge)) .exam-card-actions,
.skill-card:not(:has(.completion-badge)) .skill-card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* Hover effect for completed cards */
.exam-card:has(.completion-badge):hover,
.skill-card:has(.completion-badge):hover {
    border-color: #4ade80;
    box-shadow: 0 4px 12px rgba(134, 239, 172, 0.25);
    transform: translateY(-2px);
}