.practice-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 5%;
}

.submit-output-link {
    color: #38bdf8;
    font-weight: 600;
}

.practice-heading {
    margin-bottom: 20px;
}

.practice-heading h2 {
    margin: 6px 0;
    color: #14243d;
    font-size: 28px;
}

.practice-heading p {
    color: #64748b;
    font-size: 13px;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.preset-btn {
    background: #17263b;
    color: #94a3b8;
    border: 1px solid #293b52;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

.preset-btn:hover {
    background: #233754;
    color: #ffffff;
}

.preset-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

/* Split Layout */
.playground-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .playground-split {
        grid-template-columns: 1fr;
    }
}

.playground-split .editor-container,
.playground-split .preview-container {
    margin: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #293b52;
    background: #0f172a;
}

.editor-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #1e293b;
    color: #f8fafc;
    border-bottom: 1px solid #293b52;
    gap: 10px;
    flex-wrap: wrap;
}

.editor-file {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-file i {
    color: #ff7043;
}

.editor-actions {
    position: relative;
    display: flex;
    gap: 8px;
}

.editor-actions button {
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s ease;
}

.editor-actions button:hover {
    background: #1e293b;
}

.editor-actions .run-button {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.editor-actions .run-button:hover {
    background: #1d4ed8;
}

.playground-split .CodeMirror {
    position: relative;
    z-index: 1;
    height: 520px !important;
    font-size: 14px;
}

/* Preview */
.playground-split .preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #293b52;
}

.playground-split #htmlPreview {
    width: 100%;
    height: 520px !important;
    border: none;
    background: #ffffff;
    display: block;
}