/* CSS for HTML/JS Editor */
.resize-none {
    resize: none !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Editor Styling */
textarea#code-editor {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #1e1e1e; /* Dark theme for editor */
    color: #d4d4d4;
    caret-color: white;
}

textarea#code-editor:focus {
    outline: none;
    box-shadow: none;
}

/* Console Styling */
.console-pane {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    overflow-y: auto;
}

.console-log {
    border-bottom: 1px solid #eee;
    padding: 4px 8px;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-log.log { color: #333; }
.console-log.info { color: #004085; background-color: #cce5ff; }
.console-log.warn { color: #856404; background-color: #fff3cd; }
.console-log.error { color: #721c24; background-color: #f8d7da; }

.pane-header {
    background: #e9ecef;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#btn-clear-console {
    font-size: 0.75rem;
    padding: 2px 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        height: auto !important;
    }
    .flex-grow-1.d-flex.overflow-hidden {
        flex-direction: column;
        overflow: visible !important;
    }
    .editor-pane, .preview-pane {
        width: 100% !important;
        height: 50vh !important;
    }
    .vr {
        display: none;
    }
}
