/* Extracted from index.html for mobile development */

/* File: styles.css */
/* [2025-08-09, 06:30:00] Revision 11 - Complete fix for all issues */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --border-color: #333;
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --header-height: 50px;
    --input-height: 60px;
    --resizer-size: 4px;
    --resizer-hit-area: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Main Layout */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: relative;
}

/* Header - Always visible */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.model-selector {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.model-selector:hover {
    background: #333;
    border-color: var(--accent-blue);
}

/* Main Content Layout Adjustments */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--bg-primary);
    margin-top: var(--header-height);
    margin-bottom: 20px;
    position: relative;
    height: calc(100vh - var(--header-height) - 20px);
}

/* Left Column - File Tree */
.left-column {
    width: 250px;
    min-width: 150px;
    max-width: 500px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Right Column - Editor + Chat */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 300px;
    height: 100%;
}

/* Enhanced Resizers with larger hit areas */
.resizer-vertical {
    position: absolute;
    right: calc(var(--resizer-size) / 2 * -1);
    top: 0;
    bottom: 0;
    width: var(--resizer-hit-area);
    cursor: col-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resizer-vertical::after {
    content: '';
    width: var(--resizer-size);
    height: 100%;
    background: var(--border-color);
    transition: background 0.2s;
}

.resizer-vertical:hover::after,
.resizer-vertical.active::after {
    background: var(--accent-blue);
}

.resizer-horizontal {
    position: absolute;
    bottom: calc(var(--resizer-size) / 2 * -1);
    left: 0;
    right: 0;
    height: var(--resizer-hit-area);
    cursor: row-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resizer-horizontal::after {
    content: '';
    width: 100%;
    height: var(--resizer-size);
    background: var(--border-color);
    transition: background 0.2s;
}

.resizer-horizontal:hover::after,
.resizer-horizontal.active::after {
    background: var(--accent-blue);
}

/* File Tree */
.file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.file-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.file-tree-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-tree-actions {
    display: flex;
    gap: 8px;
}

.upload-btn, .action-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.upload-btn:hover, .action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.clear-all-btn {
    background: var(--accent-red);
}

.clear-all-btn:hover {
    background: #dc2626;
}

.download-btn {
    background: var(--accent-green);
}

.download-btn:hover {
    background: #059669;
}

/* Project Section */
.project-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
}

.section-title {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-toggle-all {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.context-toggle-all.active {
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

/* File Browser Separator */
.file-separator {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.file-item, .folder-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 2px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    position: relative;
    gap: 8px;
}

.file-item:hover, .folder-item:hover {
    background: var(--bg-tertiary);
}

.file-item.active {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-blue);
}

.context-toggle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.context-toggle.active {
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

.file-icon, .folder-icon {
    flex-shrink: 0;
}

.file-name, .folder-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-actions, .folder-actions {
    display: none;
    gap: 5px;
    margin-left: auto;
}

.file-item:hover .file-actions,
.folder-item:hover .folder-actions {
    display: flex;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.folder-content {
    margin-left: 20px;
}

.folder-expanded .folder-icon::before {
    content: '📂';
}

.folder-collapsed .folder-icon::before {
    content: '📁';
}

/* Instructions Section Styles */
.instructions-upload-btn {
    background: var(--accent-purple);
}

.instructions-upload-btn:hover {
    background: #9333ea;
}

/* FIXED Editor Container - Full Window Height */
.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0d1117;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 100px;
}

/* ENHANCED Collapsed State - Only show toggle button */
.editor-container.collapsed {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: none !important;
    overflow: hidden !important;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
    align-items: center;
}

/* Hide everything except toggle when collapsed */
.editor-container.collapsed .editor-tabs,
.editor-container.collapsed #editor,
.editor-container.collapsed .editor-actions,
.editor-container.collapsed .resizer-horizontal {
    display: none !important;
}

/* Show only the toggle area when collapsed */
.editor-container.collapsed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

/* Toggle button positioning when collapsed */
.editor-container.collapsed {
    position: relative;
    cursor: pointer;
}

.editor-container.collapsed::after {
    content: '▲ Show Editor';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.editor-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
}

.editor-tab {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.editor-tab.active {
    background: #0d1117;
    border-bottom: 2px solid var(--accent-blue);
}

.editor-tab-close {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.editor-tab-close:hover {
    opacity: 1;
}

#editor {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
    background: #0d1117;
}

.CodeMirror {
    height: 100%;
    background: #0d1117 !important;
    color: #c9d1d9 !important;
    font-size: 14px !important;
}

.editor-actions {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Chat Container */
.chat-container {
    height: 40%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

/* When editor is collapsed, chat takes more space */
.editor-container.collapsed ~ .chat-container {
    flex: 1;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-user {
    text-align: right;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.message-user .message-content {
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-assistant .message-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

/* Modification Report Styles */
.modification-report {
    background: var(--bg-primary);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
}

.modification-report h3 {
    color: var(--accent-green);
    margin-bottom: 12px;
    font-size: 16px;
}

.modification-item {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-blue);
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.modification-file {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.modification-details {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.modification-description {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 8px;
}

.project-plan {
    background: var(--bg-primary);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
}

.project-plan h3 {
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.project-plan ul {
    list-style: none;
    padding-left: 20px;
}

.project-plan li {
    position: relative;
    padding-left: 20px;
    margin: 8px 0;
}

.project-plan li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.confirm-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.confirm-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.modify-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modify-btn:hover {
    background: #333;
    border-color: var(--accent-blue);
}

/* COMPACT Floating Input Container */
.input-container {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(65vw, 460px);  /* Compact width */
    height: auto;
    min-height: 48px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: move;
    touch-action: none;
}

.input-container.expanded {
    min-height: 80px;
}

.input-container.dragging {
    transition: none;
    cursor: grabbing;
}

/* FIX: When collapsed, hide everything except toggle button */
.input-container.collapsed {
    width: auto !important;
    min-width: 48px;
    padding: 8px;
    background: var(--bg-secondary) !important;
    opacity: 1 !important;
}

.input-container.collapsed .button-grid,
.input-container.collapsed .input-wrapper,
.input-container.collapsed .send-btn {
    display: none !important;
}

/* Show/Hide Toggle Button */
.show-hide-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.show-hide-toggle:hover {
    background: #333;
    border-color: var(--accent-blue);
}

/* 2x2 Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.grid-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grid-button:hover {
    background: #333;
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.grid-button.context-button {
    background: transparent;
    border: none;
}

.context-indicator-large {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

/* Context Dropdown */
.context-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    min-width: 250px;
    max-width: 350px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.context-dropdown.show {
    display: block;
}

.context-dropdown-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.context-dropdown-content {
    font-size: 12px;
    color: var(--text-secondary);
    max-height: 150px;
    overflow-y: auto;
}

/* Input Wrapper with YELLOW FONT */
.input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
    transition: border-color 0.2s;
    min-height: 32px;
    position: relative;
}

.input-wrapper:focus-within {
    border-color: var(--accent-blue);
}

.input-wrapper.expanded {
    min-height: 60px;
}

#messageInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-yellow) !important;
    padding: 4px 0;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    min-height: 20px;
    max-height: 100px;
    overflow-y: auto;
    transition: none;
}

#messageInput.expanded {
    min-height: 48px;
}

#messageInput::placeholder {
    color: var(--text-secondary);
}

/* Send Button */
.send-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dialogs */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1999;
}

.find-replace-dialog, .api-key-setup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    display: none;
}

.dialog-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dialog-input, .api-key-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.dialog-input:focus, .api-key-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dialog-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.dialog-btn-primary {
    background: var(--accent-blue);
    color: white;
}

.dialog-btn-primary:hover {
    background: #2563eb;
}

.dialog-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.dialog-btn-cancel:hover {
    background: #333;
}

.api-key-setup h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.api-key-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
}

.progress-bar-header {
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar-track {
    background: var(--bg-primary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--accent-blue);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: var(--input-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.mobile-nav-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav-btn.active {
    color: var(--accent-blue);
    border-top: 2px solid var(--accent-blue);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
    
    .main-content {
        margin-bottom: 20px;
    }
    
    .left-column {
        display: none;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 50;
    }
    
    .left-column.mobile-show {
        display: flex;
    }
    
    .chat-container.mobile-show {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }
    
    .resizer-vertical, .resizer-horizontal {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .model-selector {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .input-container {
        bottom: 10px;
        width: calc(100vw - 40px);
        max-width: 400px;
        padding: 6px 8px;
        gap: 6px;
        min-height: 44px;
    }
    
    .button-grid {
        width: 56px;
        height: 56px;
        gap: 2px;
    }
    
    .show-hide-toggle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .context-dropdown {
        min-width: 200px;
        max-width: 280px;
    }
}

/* FIXED CodeMirror Styles - White text on black background */
.CodeMirror {
    background: #0d1117 !important;
    color: #c9d1d9 !important;
    font-size: 14px !important;
    height: 100%;
    font-family: 'Consolas', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.CodeMirror-gutters {
    background: #010409 !important;
    border-right: 1px solid #30363d;
}
.CodeMirror-linenumber {
    color: #8b949e !important;
    padding: 0 10px;
}
.CodeMirror-cursor {
    border-left: 2px solid #58a6ff;
}
.CodeMirror-selected {
    background: #264f78 !important;
}
.CodeMirror-activeline-background {
    background: #161b22 !important;
}
.CodeMirror-focused .CodeMirror-selected {
    background: #264f78 !important;
}
.CodeMirror-line {
    color: #c9d1d9 !important;
}

/* Syntax highlighting */
.cm-s-monokai span.cm-comment { color: #8b949e !important; }
.cm-s-monokai span.cm-string { color: #a5d6ff !important; }
.cm-s-monokai span.cm-number { color: #79c0ff !important; }
.cm-s-monokai span.cm-variable { color: #ffa657 !important; }
.cm-s-monokai span.cm-variable-2 { color: #79c0ff !important; }
.cm-s-monokai span.cm-def { color: #d2a8ff !important; }
.cm-s-monokai span.cm-operator { color: #ff7b72 !important; }
.cm-s-monokai span.cm-keyword { color: #ff7b72 !important; }
.cm-s-monokai span.cm-atom { color: #79c0ff !important; }
.cm-s-monokai span.cm-meta { color: #d2a8ff !important; }
.cm-s-monokai span.cm-tag { color: #7ee787 !important; }
.cm-s-monokai span.cm-attribute { color: #79c0ff !important; }
.cm-s-monokai span.cm-qualifier { color: #7ee787 !important; }
.cm-s-monokai span.cm-property { color: #79c0ff !important; }
.cm-s-monokai span.cm-builtin { color: #ffa657 !important; }
.cm-s-monokai span.cm-type { color: #ffa657 !important; }

/* Important overrides for text color */
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
    color: #c9d1d9 !important;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.indicator-green { background: var(--accent-green); }
.indicator-yellow { background: var(--accent-yellow); }
.indicator-orange { background: #f97316; }
.indicator-red { background: var(--accent-red); }
.indicator-red-pulse {
    background: var(--accent-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}