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


body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(ellipse at top, rgba(79, 70, 229, 0.12), transparent 55%),
        #0f172a;
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #111827;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}



.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 9px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: #a5b4fc;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-links > a[href="help-support.html"] {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links > a[href="help-support.html"]:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}


.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    max-width: 900px;
}


.hero p {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 30px;
}


.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #ffffff;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}.courses {
    padding: 80px 60px;
    text-align: center;
}

.courses h2 {
    font-size: 40px;
    margin-bottom: 40px;
}

.course-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}


.course-card {
    background: #1e293b;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    width: 300px;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.course-card h3 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #f8fafc;
}

.course-card p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 25px;
}.course-page {
    max-width: 900px;
    margin: auto;
    padding: 70px 30px;
}

.course-page h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.course-page > p {
    color: #cbd5e1;
    font-size: 20px;
    margin-bottom: 50px;
}

.lesson {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.lesson h2 {
    margin-bottom: 15px;
}

.lesson p {
    color: #cbd5e1;
    line-height: 1.7;
}

.lesson h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.lesson pre {
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    color: #e2e8f0;
}.editor-page {
    padding: 60px;
    max-width: 1400px;
    margin: auto;
}

.editor-page h1 {
    font-size: 45px;
    margin-bottom: 10px;
}

.editor-page > p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 35px;
}

.editor-container {
    display: flex;
    gap: 25px;
    align-items: stretch;
}

.code-area,
.preview-area {
    flex: 1;
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.code-area h2,
.preview-area h2 {
    margin-bottom: 15px;
}

#codeInput {
    width: 100%;
    height: 430px;
    box-sizing: border-box;
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}
.editor-wrapper {
    display: flex;
    width: 100%;
    height: 430px;
}

#lineNumbers {
    width: 45px;
    padding: 20px 10px;
    box-sizing: border-box;
    background: #0f172a;
    color: #64748b;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
    overflow: hidden;
    user-select: none;
}

.editor-wrapper #codeInput {
    flex: 1;
    height: 430px;
}

#codeInput:focus {
    border-color: #2563eb;
}

.editor-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.code-area button {
    padding: 14px 25px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.code-area button:hover {
    background: #1d4ed8;
}

#preview {
    width: 100%;
    height: 430px;
    box-sizing: border-box;
    background: white;
    border: none;
    border-radius: 8px;
}
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    
.nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    width: 100%;
}

.nav-links a {
    font-size: 13px;
    padding: 8px;
}

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 17px;
    }

    .courses {
        padding: 60px 20px;
    }

    .courses h2 {
        font-size: 32px;
    }

    .course-card {
        width: 100%;
        max-width: 400px;
    }

    .editor-page {
        padding: 40px 20px;
    }

    .editor-page h1 {
        font-size: 35px;
    }

    .editor-container {
        flex-direction: column;
    }

    .code-area,
    .preview-area {
        width: 100%;
    }
    
    .python-course-content {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 20px;
    }

    .python-course-content pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    #lessonTitle {
        scroll-margin-top: 20px;
    }

    .python-course-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .python-course-sidebar .lesson-list {
    max-height: none;
    overflow-y: visible;
}

    .python-course-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
    }
}.projects {
    padding: 80px 60px;
    text-align: center;
}

.projects h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.projects-intro {
    color: #cbd5e1;
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 45px;
}

.project-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.project-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
}

.project-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.project-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
}.login-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
}

.login-box h1 {
    font-size: 35px;
    margin-bottom: 10px;
}

.login-box > p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

.login-box form {
    display: flex;
    flex-direction: column;
}

.login-box label {
    margin-bottom: 8px;
    font-weight: bold;
}

.login-box input {
    padding: 14px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: #0f172a;
    color: white;
    font-size: 16px;
}

.login-box input::placeholder {
    color: #94a3b8;
}

.login-box button {
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover {
    background: #1d4ed8;
}

.signup-text {
    text-align: center;
    margin-top: 25px;
    color: #cbd5e1;
}

.signup-text a {
    color: #60a5fa;
    text-decoration: none;
}.signup-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.signup-box {
    width: 100%;
    max-width: 450px;
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
}

.signup-box h1 {
    font-size: 35px;
    margin-bottom: 10px;
}

.signup-box > p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

.signup-box form {
    display: flex;
    flex-direction: column;
}

.signup-box label {
    margin-bottom: 8px;
    font-weight: bold;
}

.signup-box input {
    padding: 14px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: #0f172a;
    color: white;
    font-size: 16px;
}

.signup-box input::placeholder {
    color: #94a3b8;
}

.signup-box button {
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.signup-box button:hover {
    background: #1d4ed8;
}

.login-text {
    text-align: center;
    margin-top: 25px;
    color: #cbd5e1;
}

.login-text a {
    color: #60a5fa;
    text-decoration: none;
}.dashboard-page {
    min-height: 80vh;
    padding: 70px 60px;
    text-align: center;
}

.dashboard-page h1 {
    font-size: 45px;
    margin-bottom: 15px;
}

.dashboard-subtitle {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 50px;
}

.dashboard-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.dashboard-card {
    width: 350px;
    background: #1e293b;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
}

.dashboard-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.dashboard-card h2 {
    font-size: 25px;
    margin-bottom: 15px;
}

.dashboard-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dashboard-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-btn:hover {
    background: #1d4ed8;
}


@media (max-width: 768px) {

    .dashboard-page {
        padding: 50px 20px;
    }

    .dashboard-page h1 {
        font-size: 35px;
    }

    .dashboard-card {
        width: 100%;
        max-width: 400px;
    }

}.progress-item {
    margin-top: 20px;
    text-align: left;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.progress-bar {

    width: 100%;

    height: 10px;

    background: #0f172a;

    border-radius: 10px;

    overflow: hidden;

}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
    transition: width 0.4s ease;
}.complete-lesson {
    margin-top: 20px;
    padding: 12px 20px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.complete-lesson:hover {
    background: #15803d;
}/* ================================
   REAL LEARNING PLATFORM
================================ */

.learning-platform {
    display: flex;
    min-height: calc(100vh - 80px);
}


/* Course Sidebar */

.course-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #111827;
    padding: 30px 20px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.course-sidebar h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.course-level {
    color: #94a3b8;
    margin-bottom: 25px;
}

.course-sidebar h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
}


/* Progress */

.course-progress {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.course-progress-bar {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 10px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    border-radius: 10px;
    transition: width 0.4s ease;
}


/* Lesson Buttons */

.lesson-link {
    display: block;
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 5px;

    background: transparent;
    color: #cbd5e1;

    border: none;
    border-radius: 7px;

    text-align: left;
    font-size: 14px;

    cursor: pointer;
}

.lesson-link:hover {
    background: #1e293b;
    color: white;
}

.lesson-link.active {
    background: #2563eb;
    color: white;
}


/* Main Lesson Area */

.lesson-content {
    flex: 1;
    max-width: 900px;
    padding: 60px;
    margin: auto;
}

.lesson-badge {
    display: inline-block;

    background: #1e3a8a;
    color: #93c5fd;

    padding: 7px 12px;
    border-radius: 6px;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 15px;
}

.lesson-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.lesson-content > p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}


/* Lesson Cards */

.lesson-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.lesson-card h2 {
    margin-bottom: 15px;
}

.lesson-card p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 15px;
}

.lesson-card pre {
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}


/* Practice */

.practice-card {
    background: #172554;
    border: 1px solid #2563eb;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.practice-card h2 {
    margin-bottom: 15px;
}

.practice-card p {
    color: #cbd5e1;
    margin-bottom: 10px;
}


/* Quiz */

.quiz-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.quiz-card h2 {
    margin-bottom: 15px;
}

.quiz-card button {
    display: block;

    width: 100%;

    margin-top: 10px;

    padding: 12px 15px;

    background: #0f172a;
    color: white;

    border: 1px solid #334155;

    border-radius: 8px;

    text-align: left;

    cursor: pointer;
}

.quiz-card button:hover {
    background: #334155;
}


/* Lesson Navigation */

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 40px;
    padding-top: 30px;

    border-top: 1px solid #334155;
}

.lesson-navigation button {
    padding: 12px 20px;

    border: none;
    border-radius: 8px;

    background: #2563eb;
    color: white;

    font-weight: bold;

    cursor: pointer;
}

.lesson-navigation button:hover {
    background: #1d4ed8;
}

.lesson-navigation button:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
}


/* Mobile */

@media (max-width: 900px) {

    .learning-platform {
        flex-direction: column;
    }

    .course-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .lesson-content {
        padding: 40px 20px;
    }

    .lesson-content h1 {
        font-size: 36px;
    }

}/* Continue Learning */

.continue-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1e293b;
    border: 1px solid #334155;

    padding: 25px 30px;
    margin-bottom: 30px;

    border-radius: 12px;
}

.continue-label {
    color: #60a5fa;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.continue-card h2 {
    margin-bottom: 8px;
}

.continue-card p {
    color: #94a3b8;
}

.continue-card .dashboard-btn {
    white-space: nowrap;
}

@media (max-width: 700px) {

    .continue-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

}/* ========================================
   PROFILE PAGE
======================================== */

.profile-page {
    min-height: calc(100vh - 80px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
}

.profile-card {
    width: 100%;
    max-width: 500px;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 16px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25);
}

.profile-avatar {
    width: 100px;
    height: 100px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #2563eb;

    border-radius: 50%;

    font-size: 45px;
}

.profile-card h1 {
    font-size: 30px;

    margin-bottom: 8px;
}

.profile-card p {
    color: #94a3b8;

    margin-bottom: 25px;
}

.profile-card .dashboard-btn {
    display: inline-block;

    border: none;

    cursor: pointer;
}
/* ========================================
   PROFILE EDIT
======================================== */

#editProfileArea {
    margin-top: 20px;
}

#nameInput {
    width: 100%;
    max-width: 320px;

    padding: 12px 14px;

    background: #0f172a;
    color: white;

    border: 1px solid #475569;
    border-radius: 8px;

    font-size: 16px;

    outline: none;
}

#nameInput:focus {
    border-color: #2563eb;
}

#saveProfileButton {
    border: none;
    cursor: pointer;
}
#logoutButton {
    margin-top: 12px;
}
/* Python course layout fix */

.python-course-container {
display: flex;
flex-direction: column;
align-items: stretch;
width: 100%;
min-height: calc(100vh - 70px);
}

.python-course-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 25px 15px;
    box-sizing: border-box;
}

.python-course-content {
    flex: 1;
    padding: 40px;
    box-sizing: border-box;
    min-width: 0;
}
/* Python lesson content styling */

.python-course-content {
    padding: 45px 55px;
}

.python-course-content h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.python-course-content > p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.python-course-content .lesson-card,
.python-course-content .practice-card,
.python-course-content .quiz-card {
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 12px;
}

.python-course-content .lesson-card h2,
.python-course-content .practice-card h2,
.python-course-content .quiz-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.python-course-content .lesson-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.python-course-content .lesson-navigation button {
    min-width: 140px;
}

.python-lesson-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid #ddd;
    gap: 20px;
}

.python-lesson-navigation button {
    flex: 0 0 auto;
}
/* Keep Python sidebar and content independent */

.python-course-container {
height: auto;
min-height: calc(100vh - 70px);
overflow: visible;
}


.python-course-sidebar {
    height: 100%;
    overflow-y: auto;
}

.python-course-content {
    height: 100%;
    overflow-y: auto;
}
/* ================================
   CODING CHALLENGES
================================ */

.challenges-page {
    max-width: 1400px;
    margin: auto;
    padding: 50px 40px 80px;
}

.challenges-page > h1 {
    font-size: 42px;
    margin-bottom: 8px;
}

.challenges-intro {
    color: #94a3b8;
    font-size: 17px;
    margin-bottom: 35px;
}


/* Challenge Card */

.challenge-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.challenge-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.challenge-card p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
    max-width: 800px;
}


/* Buttons */

.challenge-card button {
    padding: 13px 22px;
    margin-top: 20px;
    margin-right: 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.challenge-card button:hover {
    background: #1d4ed8;
}


/* Challenge Editor */

#challengeCode {
    width: 100%;
    min-height: 300px;
    margin-top: 25px;
    padding: 20px;
    box-sizing: border-box;

    background: #020617;
    color: #e2e8f0;

    border: 1px solid #334155;
    border-radius: 10px;

    font-family: monospace;
    font-size: 16px;
    line-height: 1.6;

    resize: vertical;
    outline: none;
}

#challengeCode:focus {
    border-color: #2563eb;
}


/* Buttons inside workspace */

.challenge-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.challenge-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.challenge-navigation button {
    padding: 10px 16px;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.challenge-navigation button:hover {
    background: #334155;
    border-color: #3b82f6;
    color: #f8fafc;
}

@media (max-width: 600px) {
    .challenge-navigation {
        flex-direction: column;
    }

    .challenge-navigation button {
        width: 100%;
    }
}

/* Output */

.challenge-card h3 {
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 20px;
}

#challengeOutput {
    min-height: 55px;
    padding: 16px;

    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;

    color: #e2e8f0;
    font-family: monospace;
    font-size: 15px;
}


/* Mobile */

@media (max-width: 800px) {

    .challenges-page {
        padding: 30px 20px 60px;
    }

    .challenges-page > h1 {
        font-size: 32px;
    }

    .challenge-card {
        padding: 22px;
    }

    .challenge-buttons {
        flex-direction: column;
    }

    .challenge-card button {
        width: 100%;
        margin-right: 0;
    }

}
/* ================================
   CHALLENGE WORKSPACE
================================ */

.challenge-workspace {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    margin-top: 30px;
}


/* Problem Panel */

.challenge-problem {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 25px;
}

.challenge-problem h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.challenge-problem p {
    color: #cbd5e1;
    line-height: 1.7;
}
.challenge-problem h2 {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 12px;
}

.challenge-problem h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-size: 16px;
}

.challenge-problem p {
    margin-bottom: 10px;
}

/* Code Panel */

.challenge-editor {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 25px;
}

.challenge-editor h3 {
    margin-top: 0;
    margin-bottom: 15px;
}


/* Code Area */

.challenge-editor #challengeCode {
    margin-top: 0;
    min-height: 360px;
}


/* Output */

.challenge-output {
    margin-top: 25px;
}


/* Mobile */

@media (max-width: 900px) {

    .challenge-workspace {
        grid-template-columns: 1fr;
    }

}
.challenge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.challenge-number {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.challenge-difficulty {
    padding: 5px 10px;
    border-radius: 20px;
    background: #14532d;
    color: #86efac;
    font-size: 13px;
    font-weight: 600;
}
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.editor-header h3 {
    margin: 0;
}

.editor-language {
    padding: 6px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
} 
.challenge-editor-wrapper {
    display: flex;
    width: 100%;
}

#challengeLineNumbers {
    width: 45px;
    padding: 20px 10px;
    box-sizing: border-box;

    background: #020617;
    color: #64748b;

    font-family: monospace;
    font-size: 16px;
    line-height: 1.6;

    text-align: right;
    user-select: none;

    border: 1px solid #334155;
    border-right: none;

    border-radius: 10px 0 0 10px;

    overflow: hidden;
}

.challenge-editor-wrapper #challengeCode {
    flex: 1;
    margin-top: 0;

    border-radius: 0 10px 10px 0;
}
.challenge-editor-wrapper {
    height: 360px;
    overflow: hidden;
}

.challenge-editor-wrapper #challengeCode {
    height: 360px;
    overflow-y: auto;
    resize: none;
}

#challengeLineNumbers {
    height: 360px;
    overflow: hidden;
}
/* Challenge Result */

.challenge-result {
    margin-top: 15px;
    padding: 16px 18px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-result.success {
    background: #052e16;
    border: 1px solid #166534;
    color: #86efac;
}

.challenge-result.error {
    background: #450a0a;
    border: 1px solid #991b1b;
    color: #fca5a5;
}

.challenge-result.neutral {
    background: #172033;
    border: 1px solid #334155;
    color: #cbd5e1;
}
.challenge-hint-button {
    margin-top: 15px;
    padding: 10px 16px;
    background: #1e293b;
    color: #facc15;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.challenge-hint-button:hover {
    background: #334155;
}

#challengeHint {
    margin-top: 12px;
    padding: 14px 16px;
    background: #422006;
    border: 1px solid #854d0e;
    border-radius: 8px;
    color: #fde68a;
    line-height: 1.6;
}
/* ================================
   CHALLENGE SELECTOR
================================ */

.challenge-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.challenge-selector button {
    padding: 10px 16px;
    background: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.challenge-selector button:hover {
    background: #1e293b;
    border-color: #2563eb;
}
/* Challenge Completion */
#challengeStatus1,
#challengeStatus2,
#challengeStatus3,
#challengeStatus4,
#challengeStatus5,
#challengeStatus6,
#challengeStatus7,
#challengeStatus8,
#challengeStatus9,
#challengeStatus10,
#challengeStatus11,
#challengeStatus12,
#challengeStatus13,
#challengeStatus14,
#challengeStatus15,
#challengeStatus16,
#challengeStatus17,
#challengeStatus18,
#challengeStatus19,
#challengeStatus20,
#challengeStatus21,
#challengeStatus22,
#challengeStatus23,
#challengeStatus24,
#challengeStatus25,
#challengeStatus26,
#challengeStatus27,
#challengeStatus28,
#challengeStatus29,
#challengeStatus30,
#challengeStatus31,
#challengeStatus32,
#challengeStatus33,
#challengeStatus34,
#challengeStatus35,
#challengeStatus36,
#challengeStatus37,
#challengeStatus38,
#challengeStatus39,
#challengeStatus40,
#challengeStatus41,
#challengeStatus42,
#challengeStatus43,
#challengeStatus44,
#challengeStatus45,
#challengeStatus46,
#challengeStatus47,
#challengeStatus48,
#challengeStatus49,
#challengeStatus50 {
    color: #22c55e;
    font-weight: bold;
    margin-right: 6px;
}
/* Challenge Progress */

.challenge-progress {
    margin-bottom: 25px;
    padding: 14px 18px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
}
/* Professional Challenge Navigation */

.challenge-selector {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 30px;
}

.challenge-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.challenge-selector-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.3px;
}
.challenge-selector-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

#challengeCountBadge {
    padding: 8px 14px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 20px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.challenge-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.challenge-filter-button {
    padding: 8px 15px;
    background: #020617;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}d

.challenge-filter-button:hover,
.challenge-filter-button.active {
    background: #1e293b;
    color: #f8fafc;
    border-color: #2563eb;
}
.challenge-filter-button.active {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #2563eb;
}

.challenge-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.challenge-list button {
    min-height: 68px;
    padding: 13px 15px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
}

.challenge-list button:hover {
    background: #1e293b;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.challenge-list button strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}d

.challenge-list button small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .challenge-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .challenge-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .challenge-selector-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
.challenge-list-difficulty {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    background: #14532d;
    border: 1px solid #166534;
    border-radius: 6px;
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
}
.challenge-search {
    margin-bottom: 14px;
}
.challenge-result-count {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
#challengeSearch {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 9px;
    color: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

#challengeSearch::placeholder {
    color: #64748b;
}

#challengeSearch:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ===== Professional account navigation ===== */

#authArea {
    display: flex;
    align-items: center;
}

.account-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.account-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 8px;
}

.account-label {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.account-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#authArea .account-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 11px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

#authArea .account-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#authArea .admin-link {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

#authArea .logout-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#authArea .logout-button:hover {
    background: #b91c1c;
}

@media (max-width: 900px) {
    .account-menu {
        gap: 7px;
    }

    .account-info {
        margin-right: 0;
    }

    #authArea .account-link {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .account-menu {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .account-info {
        margin-right: 4px;
    }
}

.site-footer {
    margin-top: 60px;
    padding: 40px 20px 25px;
    text-align: center;
    background: #0b1120;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.site-footer h3 {
    color: #f8fafc;
    font-size: 22px;
    margin-bottom: 10px;
}

.site-footer p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 8px 0;
}

.site-footer .footer-founder {
    color: #c7d2fe;
    font-weight: 600;
    margin-top: 18px;
}

.site-footer .footer-copyright {
    font-size: 12px;
    margin-top: 20px;
}
/* About Section */

.about-section {
padding: 80px 24px;
margin: 40px auto 0;
background: linear-gradient(
180deg,
rgba(30, 41, 59, 0.35),
rgba(15, 23, 42, 0.15)
);
border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.about-container {
max-width: 1000px;
margin: 0 auto;
text-align: center;
}

.about-label {
display: inline-block;
color: #a5b4fc;
font-size: 12px;
font-weight: 700;
letter-spacing: 3px;
margin-bottom: 18px;
}

.about-container h2 {
max-width: 750px;
margin: 0 auto 22px;
color: #f8fafc;
font-size: clamp(30px, 4vw, 44px);
line-height: 1.2;
letter-spacing: -1px;
}

.about-intro {
max-width: 720px;
margin: 0 auto;
color: #cbd5e1;
font-size: 16px;
line-height: 1.9;
}

.about-features {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
margin-top: 45px;
text-align: left;
}

.about-feature {
padding: 25px;
background: rgba(30, 41, 59, 0.7);
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: 14px;
}

.about-feature h3 {
margin: 0 0 12px;
color: #e0e7ff;
font-size: 19px;
}

.about-feature p {
margin: 0;
color: #cbd5e1;
font-size: 14px;
line-height: 1.8;
}

.about-founder {
margin-top: 45px;
padding-top: 28px;
border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.about-founder span {
color: #94a3b8;
font-size: 11px;
font-weight: 600;
letter-spacing: 2px;
}

.about-founder p {
margin: 10px 0;
color: #f8fafc;
font-size: 22px;
font-weight: 700;
}

@media (max-width: 768px) {
.about-section {
padding: 55px 20px;
}

.about-features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
}

.about-feature {
    padding: 22px;
}
}
.footer-legal-links {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-top: 20px;
}

.footer-legal-links a {
color: #cbd5e1;
text-decoration: none;
font-size: 13px;
transition: color 0.2s ease;
}

.footer-legal-links a:hover {
color: #a5b4fc;
}

.footer-legal-links span {
color: #64748b;
}

@media (max-width: 480px) {
.footer-legal-links {
gap: 10px;
}
}
