:root {
    --bg-left: #f8fafc;
    --text-left: #1e293b;
    --bg-right: #0f172a;
    --terminal-bg: #020617;
    --terminal-text: #93c5fd;
    --accent-color: #2563eb;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: var(--bg-left);
}

.split-container { display: flex; width: 100%; height: 100%; }

.left-panel {
    flex: 1;
    background-color: #ffffff;
    color: var(--text-left);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 2;
    overflow-y: auto;
}

.content-wrapper { padding: 3rem; max-width: 700px; margin: 0 auto; width: 100%; }
.header-section { margin-bottom: 1.2rem; }

.header-section h1 {
    font-weight: 600;
    font-size: 2.35rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.header-section p { font-size: 1rem; color: #64748b; line-height: 1.5; }

.model-filter {
    background: #f8fafc;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
}

.model-filter label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.model-filter select {
    width: 100%;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.model-note { margin-top: 6px; color: #4b5563; font-size: 0.82rem; }

.model-doc-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-doc-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 5px 10px;
}

.model-doc-links a:hover { background: #eff6ff; border-color: #60a5fa; }

.clear-btn {
    background-color: #f8fafc;
    color: #ef4444;
    border: 1px solid #fee2e2;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.clear-btn:hover { background-color: #fef2f2; border-color: #fca5a5; }

.accordion { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.accordion-category { border-bottom: 1px solid var(--border-color); }
.accordion-category:last-child { border-bottom: none; }

.accordion-header {
    background-color: #f1f5f9;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body { display: none; background-color: #ffffff; padding: 1rem 1.5rem; }
.accordion-body.open { display: block; }

.config-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-color); }
.config-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.config-item.incompatible { opacity: 0.55; }

.compat-note { margin-top: 6px; margin-left: 28px; font-size: 0.8rem; color: #b45309; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.guide-text {
    font-size: 0.86rem;
    color: #475569;
    margin: 8px 0 12px 28px;
    padding: 10px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    line-height: 1.45;
}

.inputs-container-wrapper { margin-top: 0.8rem; margin-left: 24px; }

.config-instance {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    position: relative;
}

.add-instance-btn {
    background: none;
    border: 1px dashed #cbd5e1;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
}

.remove-instance-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}

.input-group { margin-bottom: 0.8rem; }
.input-group:last-child { margin-bottom: 0; }

.input-group label { display: block; font-size: 0.85rem; color: #475569; margin-bottom: 0.3rem; }

.input-group input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.right-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-right), #1e293b);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 820px;
    height: 90%;
    background-color: var(--terminal-bg);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background-color: #1e293b;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-lights { display: flex; gap: 8px; width: 80px; }
.light { width: 12px; height: 12px; border-radius: 50%; }
.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.expand { background-color: #27c93f; }

.terminal-title { color: #94a3b8; font-size: 0.875rem; font-family: 'Fira Code', monospace; font-weight: 500; }

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e2e8f0;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    width: 80px;
    justify-content: center;
}

.terminal-body { flex: 1; padding: 1.5rem; overflow-y: auto; background-color: var(--terminal-bg); }

pre { font-family: 'Fira Code', monospace; font-size: 0.92rem; color: var(--terminal-text); white-space: pre-wrap; line-height: 1.5; margin: 0; }
.prompt { color: #fbbf24; user-select: none; }
.typing-effect { color: #94a3b8; font-style: italic; }

@media (max-width: 768px) {
    body { overflow: auto; height: auto; }
    .split-container { flex-direction: column; }
    .content-wrapper { padding: 1.5rem; }
    .right-panel { min-height: 520px; padding: 1.5rem; }
}
