:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-bg: #1a202c;
    --darker-bg: #0f1419;
    --light-text: #e2e8f0;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    min-height: 100vh;
}

.header {
    /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/
    color: white;
    /*padding: .5rem 0;*/
    margin-bottom: 1.2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: .3rem;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
}

.code-container {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 500px;
}

.code-tabs {
    background-color: #0f1419;
    padding: 0.5rem;
    border-bottom: 1px solid #2d3748;
}

.code-tabs .nav-link {
    color: #a0aec0;
    border: none;
    border-radius: 4px;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.code-tabs .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.code-tabs .nav-link:hover {
    background-color: #2d3748;
    color: white;
}

.CodeMirror {
    height: 450px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.preview-container {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 500px;
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

.btn-run {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s;
}

.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-clear {
    background-color: #e53e3e;
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.footer {
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: var(--dark-bg);
    color: #a0aec0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.theme-selector {
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.instructions {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.instructions h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.instructions ol {
    padding-left: 1.2rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .preview-container {
        height: 300px;
        margin-top: 1rem;
    }

    .code-container {
        height: 400px;
    }

    .CodeMirror {
        height: 350px;
    }
}

.status-bar {
    background-color: #0f1419;
    color: #a0aec0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-top: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
}
