@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b; 
}
 
::-webkit-scrollbar-thumb {
    background: #475569; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b; 
}

/* CodeMirror 5 Styles */
.CodeMirror {
    height: 100% !important;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.cm-editor {
    height: 100%;
}

/* Splitter */
.gutter {
    background-color: #1e293b;
    border-left: 1px solid #334155;
    border-right: 1px solid #334155;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10;
}

.gutter:hover, .gutter.dragging {
    background-color: #3b82f6;
}

.gutter-handle {
    width: 4px;
    height: 24px;
    background-color: #475569;
    border-radius: 2px;
}

.gutter:hover .gutter-handle, .gutter.dragging .gutter-handle {
    background-color: #fff;
}

.cm-scroller {
    overflow: auto;
}

iframe {
    background-color: white;
}
