:root {
    /* Light Theme */
    --primary: #0A1F44;
    --accent: #00B8D9;
    --secondary: #475569;
    --highlight: #FF6F00;
    --background: #f7f0f0;
    --auth-background: #0A1F44;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

[data-theme="dark"] {
    --primary: #1E40AF;
    --accent: #06B6D4;
    --secondary: #94A3B8;
    --background: #111827;
    --surface: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --border: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--auth-background) 0%, #1E3A8A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.cyber-logo {
    margin-bottom: var(--space-xl);
}

.shield-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.cyber-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.loading-progress {
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Section Management */
.section {
    display: none;
    min-height: 100vh;
}


.section.active {
    display: block;
}

/* Common Components */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-google {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-google:hover {
    border-color: var(--accent);
}

.section-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

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

.see-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item i {
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    padding: 80px var(--space-lg) 80px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
    overflow-y: auto;
    height: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    min-height: 100%;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px;
    z-index: 1001 !important;
}

.video-modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.video-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    padding-bottom: var(--space-lg);
}

.close-modal {
    background: none;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    position: absolute;
    top: 10px;
    right: 10px;
}

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

.video-player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

#ytPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-actions {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.player-loading{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.25rem;
    text-align: center;
}

/* Badge Notification */
.badge-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.badge-notification.show {
    transform: translateX(100);
}

.badge-notification-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.badge-notification i {
    font-size: 24px;
    color: var(--text-secondary);
}
.badge-card{
    background: var(--surface);
    border-radius: 14px;
    padding: 8px;
}

.badge-info {
    flex-grow: 1;
}

.badge-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.badge-info p {
    margin: 5px 0 0;
    color: var(--text-primary);
    font-size: 14px;
}

.close-notification {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.close-notification:hover {
    color: #666;
}

/* Case Study Styles */
.case-study-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

.case-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.case-category, .case-impact {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.case-category {
    background: var(--primary-color);
    color: white;
}

.case-impact {
    font-weight: bold;
}

.case-impact.critical {
    background: #ff4444;
    color: white;
}

.case-impact.severe {
    background: #ff8800;
    color: white;
}

.case-impact.high {
    background: blue;
    color: white;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: var(--text-color);
}

.case-subtitle {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0 0 15px 0;
}

.case-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 15px;
}

.case-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: var(--tag-bg);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
}

.case-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    .btn-secondary{
        background: var(--background);
    }
}

/* Case Study Modal */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.case-study-modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.case-study-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary), #1E3A8A);
    color: white;
    z-index: 1;
}

.case-study-title h2 {
    margin: 0 0 3px 20px;
    font-size: 1.8em;
    color: white;
    font-weight: 600;
}

.case-study-body {
    padding: 20px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat .label {
    font-size: 0.9em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.stat .value {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-point {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lesson-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.measures-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.measures-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
}

.impact-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.impact-area {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
}

.impact-area h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

/* Case Studies Styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.case-study-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-study-header {
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-study-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.case-study-header h3 {
    color: #fff;
    position: relative;
    margin: 0;
    font-size: 1.5rem;
}

.case-study-content {
    padding: 1.5rem;
}

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

.case-study-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

.case-study-impact {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.impact-critical {
    background: var(--error-color);
    color: white;
}

.impact-high {
    background: var(--warning-color);
    color: white;
}

.impact-moderate {
    background: var(--info-color);
    color: white;
}

.case-study-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

/* Module Modal Styles */
.module-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 5px;
    z-index: 1000 !important;
}

.module-modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.module-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), #1E3A8A);
    color: white;
    position: relative;
    text-align: center;
}

.module-header-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    flex: 1;
}

.module-header-info .module-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.module-header-info h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.4rem;
    color: white;
    text-align: center;
}

.module-header-info p {
    margin: 0;
    opacity: 0.9;
    color: white;
    text-align: center;
}

.close-module-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.module-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.module-tabs {
    display: flex;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-xl);
}

.tab-button {
    background: none;
    border: none;
    padding: var(--space-lg) var(--space-xl);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.tab-content {
    flex: 1;
    overflow: auto;
    padding: var(--space-xl);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.video-item {
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 184, 217, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-info {
    padding: var(--space-lg);
}

.video-info h4 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.video-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Quiz Modal Styles */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.quiz-modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

.quiz-header h3 {
    margin: 0;
    color: white;
}

.quiz-progress {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 0.875rem;
}

.quiz-body {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    background: var(--background);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Quiz Questions */
.quiz-question {
    margin-bottom: var(--space-xl);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.quiz-option {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.quiz-option:hover {
    border-color: var(--accent);
    background: rgba(0, 184, 217, 0.05);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(0, 184, 217, 0.1);
}

.option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.quiz-option.selected .option-indicator {
    border-color: var(--accent);
    background: var(--accent);
}

.option-text {
    flex: 1;
    color: var(--text-primary);
}

/* Quiz Intro */
.quiz-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.quiz-info-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid var(--border);
    max-width: 400px;
}

.quiz-info-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.quiz-info-card h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
}

.quiz-info-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.quiz-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quiz-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quiz-stats i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0;
}

/* Quiz Results */
.quiz-results {
    padding: var(--space-lg);
}

/* Quiz Access Denied Styles */
.quiz-access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.access-denied-content {
    max-width: 400px;
    padding: 2rem;
}

.access-denied-content i {
    color: #ef4444;
    margin-bottom: 1rem;
}

.access-denied-content h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.access-requirements {
    margin: 2rem 0;
    text-align: left;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
}

.requirement i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.completion-toast.show {
    transform: translateX(0);
}

.completion-toast.error {
    background: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.results-header.passed {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.results-header.failed {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.results-header i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.score-circle {
    margin-top: var(--space-lg);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.results-summary {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--background);
    border-radius: var(--radius-md);
}

.success-message, .fail-message {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid #10B981;
}

.fail-message {
    background: rgba(239, 68, 68, 0.1);
    color: #7F1D1D;
    border: 1px solid #EF4444;
}

.result-item {
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.result-item.correct {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.result-item.incorrect {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.result-question {
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.result-answer {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.answer-label {
    font-weight: 500;
    min-width: 100px;
}

.user-answer {
    color: #EF4444;
    font-weight: 500;
}

.correct-answer {
    color: #10B981;
    font-weight: 500;
}

.result-explanation {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 184, 217, 0.1);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
}

.result-explanation i {
    color: var(--accent);
    margin-top: 2px;
}

.results-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

/* Lessons */
.lesson-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.lesson-number {
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lesson-body h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.lesson-body h4 {
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
}

.lesson-body ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.lesson-body li {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tip-box {
    background: rgba(0, 184, 217, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.tip-box i {
    color: var(--accent);
    margin-right: var(--space-sm);
}

.warning-signs {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.warning-item i {
    color: #F59E0B;
    margin-top: 2px;
}

.example-box {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: monospace;
}

/* Completion Toast */
.completion-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* App Toast */
.app-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 100px var(--space-md) 100px;
    }
    
    .mobile-nav {
        padding: var(--space-md);
    }
    
    .nav-brand span {
        display: none;
    }
        .video-modal{
        padding: 5px;
        }

    .video-modal-content,
    .module-modal-content,
    .quiz-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .module-modal-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .module-header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .module-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 30px;
        justify-content: center;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-footer {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .quiz-footer button {
        width: 100%;
    }
}
