.live-editor {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.editor-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.editor-tabs .nav-tabs {
    padding-left: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.editor-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    margin-right: 2px;
}

.editor-tabs .nav-link.active {
    color: #0d6efd;
    background-color: white;
    border-bottom: 2px solid #0d6efd;
}

.editor-tabs .nav-link:not(.active) {
    border-bottom: 2px solid transparent;
}

.tab-content {
    flex-grow: 1;
    overflow: hidden;
}

.editor-code, .result-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.CodeMirror {
    height: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.result-frame {
    background-color: white;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background-color: white;
    margin: 0;
    padding: 0;
    height: 100vh !important;
}

.fullscreen .editor-container {
    height: calc(100vh - 60px) !important;
}

.fullscreen .card {
    height: 100%;
    border-radius: 0;
    border: none;
}

.fullscreen .card-body {
    flex-grow: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .editor-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .editor-container {
        height: 400px;
    }
}