:root {
    --blue: #0891B2;
    --blue-light: #CFFAFE;
    --blue-mid: #06B6D4;
    --yellow: #FBBF24;
    --yellow-dark: #F59E0B;
    --yellow-light: #FEF3C7;
    --green: #10B981;
    --green-light: #ECFDF5;
    --green-dark: #059669;
    --purple: #0891B2;
    --purple-light: #CFFAFE;
    --orange: #EA580C;
    --orange-light: #FFEDD5;
    --red: #EF4444;
    --red-light: #FEF2F2;
    --pink: #EC4899;
    --pink-light: #FDF2F8;

    --bg: #F8FAFF;
    --card: #FFFFFF;
    --text: #1E293B;
    --muted: #64748B;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow: 0 4px 20px rgba(8, 145, 178, 0.10);
    --shadow-lg: 0 8px 40px rgba(8, 145, 178, 0.15);
    --font-h: 'Fredoka One', cursive;
    --font-b: 'Nunito', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

/* Mobile Responsive - Hide sidebar by default on mobile */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
}


.sidebar {
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(170deg, #0891B2, #00D9FF);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(8, 145, 178, 0.2);
}

/* Mobile Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        flex-direction: row;
        padding: 0;
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
    }

    .sb-logo {
        flex: 0 0 auto;
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .sb-nav {
        display: flex;
        flex-direction: row;
        padding: 8px;
        gap: 4px;
        flex: 1;
        overflow-x: auto;
    }

    .sb-item {
        padding: 10px 12px;
        margin-bottom: 0;
        font-size: 12px;
        white-space: nowrap;
    }
}

.main {
    margin-left: 240px;
    flex: 1;
    padding: 28px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 240px);
    position: relative;
}

/* Mobile Responsive Main Content */
@media (max-width: 768px) {
    .main {
        margin-left: 0;
        padding: 16px;
        width: 100%;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 12px;
    }
}

.screen {
    display: none !important;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
}

.screen.active {
    display: flex !important;
    flex-direction: column;
}

.sb-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--blue);
}

.sb-logo-text {
    color: #fff;
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 400;
}

.sb-nav {
    flex: 1;
    padding: 20px;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
}

.sb-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sb-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sb-user-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

.sb-avatar {
    width: 36px;
    height: 36px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--blue);
    font-family: var(--font-h);
}

.sb-user-info {
    color: #fff;
}

.sb-user-name {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.sb-user-role {
    font-size: 12px;
    opacity: 0.8;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.topbar-title {
    font-family: var(--font-h);
    font-size: 26px;
    color: var(--blue);
}

/* Responsive Topbar */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .topbar-title {
        font-size: 18px;
    }
}

.points-pill {
    background: linear-gradient(135deg, var(--purple), #7C3AED);
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.streak-pill {
    background: linear-gradient(135deg, var(--orange), var(--yellow-dark));
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.welcome-banner {
    background: linear-gradient(135deg, #0891B2 0%, #FBBF24 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Responsive Welcome Banner */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
    }

    .wb-mascot {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 16px;
    }

    .wb-left h1 {
        font-size: 20px;
    }

    .wb-mascot {
        font-size: 48px;
    }
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.wb-left h1 {
    font-family: var(--font-h);
    font-size: 28px;
    margin-bottom: 6px;
}

.wb-btn {
    background: var(--yellow);
    color: var(--blue);
    font-family: var(--font-b);
    font-weight: 900;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(252, 211, 77, 0.4);
    transition: all .2s;
    position: relative;
    z-index: 1;
}

.wb-btn:hover {
    transform: translateY(-2px);
}

.wb-mascot {
    font-size: 90px;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dash-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: var(--blue-light);
}

.stat-icon.yellow {
    background: var(--yellow-light);
}

.stat-icon.green {
    background: var(--green-light);
}

.stat-icon.purple {
    background: var(--purple-light);
}

.stat-info h3 {
    font-family: var(--font-h);
    font-size: 24px;
    color: var(--text);
}

.stat-info p {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.course-card {
    background: linear-gradient(135deg, #EFF6FF, #EDE9FE);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    border: 2px solid var(--blue-mid);
    cursor: pointer;
    transition: all .25s;
}

/* Responsive Course Card */
@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .course-card {
        padding: 16px;
    }
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.course-emoji {
    font-size: 60px;
    line-height: 1;
}

.prog-bar-wrap {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    height: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.prog-bar-fill {
    height: 100%;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 1s ease;
}

.continue-btn {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 40px;
    font-family: var(--font-b);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all .2s;
}

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

/* Responsive Modules Grid */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

.module-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.module-card.blue-top::before {
    background: linear-gradient(90deg, var(--blue), var(--purple));
}

.module-card.green-top::before {
    background: linear-gradient(90deg, var(--green), #06B6D4);
}

.module-card.orange-top::before {
    background: linear-gradient(90deg, var(--orange), var(--yellow-dark));
}

.module-card.pink-top::before {
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Form Container */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 0 12px;
    }
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Form Card */
@media (max-width: 768px) {
    .form-card {
        padding: 24px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 16px;
        border-radius: 12px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-b);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-b);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-b);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Action Bar */
.action-bar {
    margin-bottom: 32px;
    display: flex;
    justify-content: flex-end;
}

.add-btn {
    background: linear-gradient(135deg, var(--green), #06B6D4);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

/* Card Actions */
.card-actions {
    margin-top: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-family: var(--font-h);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Edit Module Styles */
.edit-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 16px;
}

.tab-button {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-b);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-secondary);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.form-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-b);
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-textarea::placeholder {
    color: var(--text-secondary);
}

/* Quiz Styles */
.quiz-questions {
    margin-top: 24px;
}

.question-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.question-item h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-family: var(--font-b);
    font-weight: 600;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Lesson Content Styles */
.lesson-content {
    margin-bottom: 40px;
}

.explanation-box {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.explanation-box h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.explanation-box .big-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.example-box {
    background: linear-gradient(135deg, var(--green), #06B6D4);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.example-box h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.fun-box {
    background: linear-gradient(135deg, var(--orange), var(--yellow-dark));
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.fun-box h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.code-box {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #00ff88;
    font-family: 'Courier New', monospace;
}

.code-box h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: var(--font-b);
}

.code-box pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.4;
}

.code-box code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.activity-box {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.activity-box h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.project-intro {
    background: linear-gradient(135deg, var(--blue), var(--green), var(--orange));
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.project-intro .big-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-requirements {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--green);
}

.project-requirements ul {
    list-style: none;
    padding: 0;
}

.project-requirements li {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.project-steps {
    background: rgba(255, 248, 220, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--orange);
}

.project-steps ol {
    padding-left: 20px;
}

.project-steps li {
    padding: 5px 0;
    font-size: 16px;
    font-weight: 500;
}

.bonus-features {
    background: rgba(220, 255, 248, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--blue);
}

.bonus-features ul {
    list-style: none;
    padding: 0;
}

.bonus-features li {
    padding: 8px 0;
    font-size: 16px;
}

.celebration {
    background: linear-gradient(135deg, #ffd700, #ff6b35, #f7931e);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: celebrate 2s ease-in-out infinite alternate;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

.celebration h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.celebration p {
    font-size: 18px;
    margin-bottom: 10px;
}

.module-card.locked {
    opacity: .5;
    cursor: not-allowed;
}

.module-card.done {
    border-color: var(--green);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--blue-mid);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
}

.login-btn {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.quiz-question {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.quiz-q-text {
    font-family: var(--font-h);
    font-size: 19px;
    color: var(--text);
    margin-bottom: 6px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.quiz-opt {
    background: var(--bg);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.quiz-opt:hover:not(.disabled) {
    border-color: var(--blue);
    background: var(--blue-light);
    transform: translateX(4px);
}

.quiz-opt.correct {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
    color: var(--green-dark) !important;
}

.quiz-opt.wrong {
    border-color: var(--red) !important;
    background: var(--red-light) !important;
    color: var(--red) !important;
}

.editor-box {
    background: #1E293B;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-topbar {
    background: #0F172A;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.run-btn {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-b);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.code-textarea {
    flex: 1;
    background: #1E293B;
    border: none;
    outline: none;
    color: #E2E8F0;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    padding: 16px;
    resize: none;
    min-height: 220px;
    line-height: 1.8;
    tab-size: 4;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.celebrate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.celebrate-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.tabs {
    display: flex;
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button {
    background: linear-gradient(45deg, var(--blue), var(--purple));
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s;
    flex: 1;
}

.tab-button.active {
    background: linear-gradient(45deg, var(--green), var(--green-dark));
}

.tab-content {
    background: linear-gradient(45deg, var(--blue-light), var(--purple-light));
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: var(--text);
}

#output {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    white-space: pre-wrap;
    color: #333;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: linear-gradient(45deg, var(--blue), var(--purple));
    color: #fff;
    font-weight: bold;
}

tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    font-weight: bold;
}

.alert-success {
    background: var(--green-light);
    color: var(--green-dark);
    border: 2px solid var(--green);
}

.alert-error {
    background: var(--red-light);
    color: var(--red);
    border: 2px solid var(--red);
}

@media(max-width:900px) {
    .sidebar {
        width: 70px;
    }

    .sb-logo-text,
    .sb-item span:not(.sb-icon),
    .sb-user-info,
    .sb-user-card {
        display: none;
    }

    .sb-item {
        justify-content: center;
        padding: 14px;
    }

    .main {
        margin-left: 70px;
    }

    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .compiler-wrap {
        grid-template-columns: 1fr;
    }

    .progress-overview {
        grid-template-columns: 1fr 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}