body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* NAVBAR */
.top-navbar {
    background-color: #282A35 !important;
}

.top-navbar .nav-link {
    color: #fff !important;
    padding: 10px 16px !important;
    font-size: 15px;
}

.top-navbar .nav-link:hover,
.top-navbar .nav-link.active {
    background-color: #04AA6D;
    color: #fff !important;
}

/* PAGE LAYOUT */
.page-wrapper {
    display: flex;
    min-height: calc(100vh - 130px);
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    min-width: 250px;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-title {
    background-color: #282A35;
    color: #fff;
    padding: 12px 16px;
    font-size: 15.5px;
    font-weight: bold;
    margin: 0;
    display: block;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.sidebar ul li a:hover {
    background-color: #f1f1f1;
}

.sidebar ul li.active>a {
    background-color: #04AA6D;
    color: #fff;
    font-weight: 600;
}

.sidebar ul li a .arrow {
    color: #aaa;
    font-size: 11px;
}

.sidebar ul li.active>a .arrow {
    color: rgba(255, 255, 255, 0.7);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 28px 40px 40px;
    position: relative;
    overflow-x: hidden;
}

.main-content h1 {
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
}

.editor-logo img {
    width: 200px;
    height: 200px;
    margin: 5px;

}

/* BOOKMARK */
.bookmark-icon {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 22px;
    color: #04AA6D;
    cursor: pointer;
}

/* NAV BUTTONS */
.nav-btn-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.btn-nav {
    background-color: #04AA6D;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-nav:hover {
    background-color: #028a5b;
    color: #fff;
}

/* INTRO BOX */
.intro-box {
    background-color: #d5e8d4;
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 22px;
}

.intro-box h2 {
    font-size: 1.85rem;
    font-weight: 400;
    margin-bottom: 14px;
    color: #000;
}

.intro-box p {
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.btn-start {
    background-color: #04AA6D;
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 15.5px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-start:hover {
    background-color: #028a5b;
    color: #fff;
}

/* PROGRESS */
.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.prog-bar-wrap {
    flex: 1;
    height: 9px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.prog-bar-fill {
    width: 2%;
    height: 100%;
    background: #04AA6D;
    border-radius: 10px;
}

.prog-icon {
    font-size: 20px;
    color: #bbb;
}

.tip-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 30px;
}

.tip-text a {
    color: #04AA6D;
    text-decoration: underline;
}

/* EXAMPLES SECTION */
.section-title {
    font-size: 1.9rem;
    font-weight: 400;
    margin-bottom: 18px;
    color: #000;
}

.example-box {
    background-color: #f1f1f1;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.example-box h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.example-box pre {
    background: #fff;
    border-radius: 4px;
    padding: 14px;
    font-size: 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    overflow-x: auto;
    color: #333;
}

.btn-try {
    background-color: #04AA6D;
    color: #fff;
    border: none;
    padding: 7px 16px;
    font-size: 13.5px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-try:hover {
    background-color: #028a5b;
    color: #fff;
}




/* CTA buttons */
.cta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-600);
    /* color: var(--white); */
    color: #04AA6D;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border: 2px black;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(22, 138, 65, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.40);
    color: var(--white);
}

.start-btn:active {
    transform: translateY(0);
}

.start-btn svg {
    transition: transform 0.2s;
}

.start-btn:hover svg {
    transform: translateX(4px);
}

.outline-btn {



    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-600);
    /* color: var(--white); */
    color: #131413;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border: 2px black;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(22, 138, 65, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;



    
}

.outline-btn:hover {
    border-color: var(--green-500);
    background: var(--green-50);
    color: var(--green-700);
}








/* Fix textarea dynamic height */
    .code-container2 {
        display: block;
        width: 100%;
    }

    .code-container2 textarea {
        overflow: hidden !important;
        min-height: unset !important;
        max-height: unset !important;
        height: auto;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* Fix Run button position */
    .cell-toolbar {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .run-btn {
        flex-shrink: 0;
    }



/* Cell Wrapper */

/* ── Cell wrapper ── */
.cell-wrapper {
    border: 1px solid #2e2e42;
    border-radius: 10px;
    overflow: hidden;
    background: #1e1e2e;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cell-wrapper:focus-within {
    border-color: #4a9eff55;
    box-shadow: 0 4px 24px rgba(74, 158, 255, 0.15);
}

/* ── Toolbar ── */
.cell-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #13131f;
    padding: 8px 14px;
    border-bottom: 1px solid #2e2e40;
}

/* ── Run button ── */
.run-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.run-btn:hover {
    background: #2e86ef;
}

/* ── Code area ── */
.code-container2 {
    width: 100%;
    background: #1e1e2e;
    display: flex;
}

.code-container2 textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #cdd6f4;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: none;
    caret-color: #89b4fa;
    tab-size: 4;
    overflow: hidden;
    min-height: 60px;
}

/* ── Output box ── */
.output-container-cell {
    border-top: 1px solid #2e2e40;
    background: #11111c;
    padding: 14px 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: #a6e3a1;
    white-space: pre-wrap;
    display: none;
}

.output-container-cell.visible {
    display: block;
}


/* FOOTER */
footer {
    background-color: #282A35;
    padding: 14px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .bookmark-icon {
        top: 18px;
        right: 14px;
    }
}




/* ye codes py_intro page ke liye hai */

.code-container {
    height: 60px;
    width: 1000px;
    background-color: #2d2c2c;
    color: rgb(228, 228, 35);
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.output-container {
    height: 60px;
    width: 1000px;
    padding: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.code-container2 {
    height: 80px;
    width: 1000px;
    background-color: #2d2c2c;
    color: rgb(228, 228, 35);
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.output-container2 {
    height: 80px;
    width: 1000px;
    padding: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}




/* python code cell */




@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #07070f;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.nb-shell {
    font-family: 'Inter', sans-serif;
    padding: 1.5rem 0;
    max-width: 860px;
    margin: 0 auto;
} */

/* ── Cell Wrapper ── */
.cell {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #2a2a3e;
    background: #0f0f1a;
    transition: border-color 0.2s;
}

.cell:focus-within {
    border-color: #4d7fff;
}

/* ── Cell Header ── */
.cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0a0a14;
    border-bottom: 1px solid #1e1e30;
}

.cell-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Language Badge ── */
.lang-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #7090ff;
    background: rgba(77, 127, 255, 0.1);
    border: 1px solid rgba(77, 127, 255, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lang-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4d7fff;
}

.cell-meta {
    font-size: 11px;
    color: #444466;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Action Buttons ── */
.cell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    background: none;
    border: 1px solid #2a2a40;
    color: #666688;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #1a1a2e;
    color: #9999cc;
    border-color: #3a3a58;
}

/* ── Run Button ── */
.run-btn {
    background: #4d7fff;
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

.run-btn:hover {
    background: #3366ee;
    transform: translateY(-1px);
}

.run-btn:active {
    transform: translateY(0);
}

.run-btn.running {
    background: #2a4a99;
    cursor: not-allowed;
}

/* ── Run Icon ── */
.run-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #fff;
}

.run-icon.spin {
    width: 12px;
    height: 12px;
    border-width: 0;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Gutter + Line Numbers ── */
.gutter {
    display: flex;
    background: #0c0c18;
    border-right: 1px solid #1a1a2c;
}

.line-nums {
    padding: 18px 12px 18px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.75;
    color: #333355;
    user-select: none;
    text-align: right;
    min-width: 46px;
    white-space: pre;
}

/* ── Code Area ── */
.code-area-wrap {
    flex: 1;
    background: #0f0f1a;
    position: relative;
}

textarea.code-input {
    width: 100%;
    background: transparent;
    color: #c8d3f5;
    border: none;
    outline: none;
    padding: 18px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    line-height: 1.75;
    resize: none;
    caret-color: #7090ff;
    tab-size: 4;
    min-height: 80px;
    overflow: hidden;
    display: block;
}

/* ── Output Section ── */
.output-section {
    border-top: 1px solid #1a1a2c;
    display: none;
}

.output-section.show {
    display: block;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #0a0a14;
    border-bottom: 1px solid #151525;
}

.output-label {
    font-size: 10.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444466;
}

.output-status {
    font-size: 10.5px;
    font-family: 'JetBrains Mono', monospace;
}

.output-status.ok  { color: #3ddc84; }
.output-status.err { color: #ff6b6b; }

.clear-btn {
    background: none;
    border: none;
    color: #333355;
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.clear-btn:hover { color: #666688; }

.output-body {
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.75;
    color: #a6e3a1;
    white-space: pre-wrap;
    word-break: break-all;
}

.output-body.error { color: #ff8080; }

.exec-time {
    padding: 6px 20px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: #333355;
}