﻿body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #3f3f3f;
    color: #dcdccc;
    overflow: hidden;
    margin: 0;
}

.navbar-custom {
    background-color: #2b2b2b;
    border-bottom: 1px solid #1e1e1e;
}

.ide-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

.left-panel {
    width: 35%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    background-color: #3f3f3f;
}

.resizer {
    width: 6px;
    background-color: #2b2b2b;
    cursor: col-resize;
    transition: background-color 0.2s;
}

    .resizer:hover, .resizer.dragging {
        background-color: #7f9f7f;
    }

.right-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.editor-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-bottom: 1px solid #2b2b2b;
    min-height: 32px;
    transition: flex 0.2s;
}

.editor-header {
    background: #4f4f4f;
    padding: 5px 15px;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: #dfaf8f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid #2b2b2b;
}

    .editor-header:hover {
        background: #5f5f5f;
    }

.editor-body {
    flex: 1;
    position: relative;
    display: flex;
}

.editor-section.collapsed .editor-body {
    display: none;
}

.editor-section.collapsed {
    flex: 0 0 auto !important;
}

.CodeMirror {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.offcanvas, .modal-content {
    background-color: #2b2b2b;
    color: #dcdccc;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 767.98px) {
    .ide-container {
        flex-direction: column;
    }

    .left-panel {
        display: contents;
    }

    .resizer {
        display: none;
    }

    .right-panel {
        border-top: 2px solid #2b2b2b;
    }
}
