.playground-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    min-height: 700px;
}

.lab-intro {
    text-align: center;
    padding: 4rem 5% 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.lab-intro h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #facc15, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lab-intro p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.panel-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.editor-section {
    height: 100%;
}

.code-editor-wrapper {
    flex: 1;
    position: relative;
    background: #0b1120;
}

#js-editor {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    padding: 2rem;
    resize: none;
    line-height: 1.6;
    outline: none;
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.console-section {
    flex: 1;
    min-height: 300px;
}

.console-output {
    flex: 1;
    background: #000;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    color: #cbd5e1;
}

.log-message {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    word-break: break-all;
}

.log-message::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.log-message.system {
    color: #94a3b8;
    font-style: italic;
}

.log-message.error {
    color: #f87171;
}

.preview-section {
    height: 350px;
}

.preview-content {
    flex: 1;
    background: white;
    color: #1e293b;
    padding: 2rem;
    overflow-y: auto;
}

#demo-container {
    text-align: center;
}

#demo-container h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}

.box {
    width: 100px;
    height: 100px;
    background: #38bdf8;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.btn-primary {
    background: #facc15;
    color: #000;
}

.btn-primary:hover {
    background: #fbbf24;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .playground-container {
        grid-template-columns: 1fr;
    }
}