/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-hover: #252542;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --border: #2a2a3e;
    --error: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box .subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-bottom: 16px;
    min-height: 20px;
}

/* Redirect Message */
.redirect-message {
    text-align: center;
    padding: 20px 0;
}

.redirect-message p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.redirect-link a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.redirect-link a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn:hover {
    background: var(--bg-hover);
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.btn-icon {
    padding: 8px;
    background: transparent;
}

.btn-icon:hover {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* CMS Panel */
.cms-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.cms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h1 {
    font-size: 18px;
    font-weight: 600;
}

.version-badge {
    padding: 2px 10px;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.header-center {
    display: flex;
    align-items: center;
}

.git-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 13px;
}

.git-status.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.git-status.clickable:hover {
    background: var(--bg-hover);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.clean {
    background: var(--success);
}

.status-dot.dirty {
    background: var(--warning);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Body Layout */
.cms-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar > * {
    flex-shrink: 0;
}

.sidebar .file-tree {
    flex: 1;
    flex-shrink: 1;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.sidebar-header h2,
.sidebar-header .sidebar-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-header .sidebar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}

.file-item:hover {
    background: var(--bg-hover);
}

.file-item.active {
    background: rgba(0, 212, 170, 0.1);
    border-right: 2px solid var(--accent);
}

.file-item.directory {
    font-weight: 500;
}

.file-item .icon {
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.file-item .name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* Tabs */
.editor-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-placeholder {
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    min-width: 120px;
    max-width: 200px;
    transition: all 0.15s;
}

.tab:hover {
    background: var(--bg-hover);
}

.tab.active {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent);
}

.tab .tab-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab .tab-close {
    opacity: 0.5;
    padding: 2px;
    border-radius: 3px;
}

.tab .tab-close:hover {
    opacity: 1;
    background: var(--error);
}

.tab .unsaved-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Editor Container */
.editor-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#monacoEditor, #richEditor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#richEditor {
    background: #fff;
    color: #333;
}

#richEditor.hidden {
    display: none;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.welcome-screen svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.welcome-screen h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.welcome-screen p {
    margin-bottom: 30px;
}

.shortcuts {
    display: flex;
    gap: 30px;
    font-size: 13px;
}

.shortcut kbd {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-path {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.unsaved-indicator {
    font-size: 12px;
    color: var(--accent);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-mode-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 2px;
}

.editor-mode-toggle .btn {
    background: transparent;
}

.editor-mode-toggle .btn.active {
    background: var(--bg-hover);
    color: var(--accent);
}

/* Loading */
.loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 800px;
}

.modal-full {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Upload Styles */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-tertiary);
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.upload-area.drag-over {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.upload-area svg {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.upload-file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.upload-file-item .file-icon {
    font-size: 20px;
}

.upload-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.upload-file-item .file-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-item .file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-file-item .file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
}

.upload-file-item .file-remove:hover {
    color: var(--error);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.history-item:hover {
    border-color: var(--accent);
}

.history-hash {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    min-width: 80px;
}

.history-info {
    flex: 1;
}

.history-message {
    font-size: 14px;
    margin-bottom: 4px;
}

.history-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 8px;
}

/* Diff View */
.diff-view {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.diff-view .addition {
    color: var(--success);
    background: rgba(46, 213, 115, 0.1);
}

.diff-view .deletion {
    color: var(--error);
    background: rgba(255, 71, 87, 0.1);
}

/* Preview Frame */
#previewFrame {
    width: 100%;
    height: 70vh;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-color: var(--success);
}

.notification.error {
    border-color: var(--error);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delete button and danger button styles */
.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #ff6b6b;
}

.file-item .delete-btn {
    opacity: 0;
    margin-left: auto;
    color: var(--text-muted);
    transition: opacity 0.2s, color 0.2s;
}

.file-item:hover .delete-btn {
    opacity: 1;
}

.file-item .delete-btn:hover {
    color: var(--error);
    background: rgba(255, 71, 87, 0.1);
}

/* File actions container */
.file-item .file-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-item .file-actions .btn-icon {
    color: var(--text-muted);
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}

.file-item .file-actions .rename-btn:hover {
    color: var(--accent);
    background: rgba(0, 224, 255, 0.1);
}

.file-item .file-actions .delete-btn:hover {
    color: var(--error);
    background: rgba(255, 71, 87, 0.1);
}

/* Remove the old delete-btn styles since it's now inside file-actions */
.file-item .delete-btn {
    margin-left: 0;
}

.text-muted {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Login screen adjustments */
    .login-box {
        padding: 30px 20px;
        margin: 0 15px;
        max-width: 100%;
    }
    
    .login-box h1 {
        font-size: 24px;
    }
    
    /* Header adjustments */
    .cms-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
    
    .version-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .git-status {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .header-right .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-right .btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Hide text on small buttons, show only icons */
    .header-right .btn:not(.btn-icon) svg + span {
        display: none;
    }
    
    /* Body layout - sidebar becomes overlay */
    .cms-body {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar .file-tree {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    /* Fix sidebar header - compact single row */
    .sidebar-header {
        padding: 10px 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .sidebar-header h2,
    .sidebar-header .sidebar-title {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--text-muted);
        margin: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .sidebar-header > div {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .sidebar-header .btn {
        padding: 0;
        min-height: 28px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-header .btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Fix file tree items - more compact */
    .file-tree {
        padding: 5px 0;
        display: flex;
        flex-direction: column;
    }
    
    .file-item {
        padding: 10px 15px;
        font-size: 14px;
        gap: 10px;
    }
    
    .file-item .icon {
        width: 16px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .file-item .name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 30px);
    }
    
    /* File toggle button for mobile */
    .file-toggle {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 99;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--accent);
        color: #000;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border: none;
        cursor: pointer;
    }
    
    .file-toggle:active {
        transform: scale(0.95);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    /* Editor area takes full width */
    .editor-area {
        width: 100%;
    }
    
    /* Tabs adjustments */
    .editor-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        min-width: 100px;
        max-width: 150px;
        padding: 8px 12px;
    }
    
    /* Editor toolbar adjustments */
    .editor-toolbar {
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .toolbar-left {
        flex: 1;
        min-width: 0;
    }
    
    .file-path {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
    }
    
    .toolbar-right {
        gap: 8px;
    }
    
    .toolbar-right .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .toolbar-right .btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Welcome screen adjustments */
    .welcome-screen {
        padding: 20px;
    }
    
    .welcome-screen h2 {
        font-size: 20px;
    }
    
    .welcome-screen p {
        font-size: 14px;
    }
    
    .shortcuts {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Modal adjustments */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-full {
        max-width: 100%;
    }
    
    /* History list adjustments */
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .history-hash {
        min-width: auto;
    }
    
    .history-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Notification adjustments */
    .notification {
        left: 15px;
        right: 15px;
        bottom: 80px;
        padding: 12px 16px;
    }
    
    /* Preview frame */
    #previewFrame {
        height: 60vh;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .cms-header {
        padding: 8px 12px;
    }
    
    .header-left h1 {
        font-size: 14px;
    }
    
    .header-right .btn {
        padding: 6px 10px;
    }
    
    .file-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .tab {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .file-item {
        padding: 12px 20px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .tab {
        min-height: 44px;
    }
    
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* Mobile-only and desktop-only utility classes */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: flex;
    }
}

/* Ensure editor has proper dimensions */
#monacoEditor {
    width: 100% !important;
    height: 100% !important;
}

/* Mobile editor adjustments */
@media (max-width: 768px) {
    .editor-container {
        min-height: 300px;
    }
    
    /* Ensure monaco editor fills container */
    #monacoEditor,
    .monaco-editor {
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Hide minimap on mobile */
    .monaco-editor .minimap {
        display: none !important;
    }
    
    /* Adjust editor scrollbar */
    .monaco-editor .scrollbar {
        width: 8px !important;
    }
}
