/* Linux Text Editor Styles */

.editor-modal {
    z-index: 10000;
}

.editor-modal .modal-content {
    padding: 0;
    background: #2e3440;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #4c566a;
}

.editor-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999;
}

.editor-fullscreen .modal-content {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    border: none;
}

.editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'JetBrains Mono', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    color: #d8dee9;
    background: #2e3440;
}

/* Title Bar */
.editor-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    background: #3b4252;
    border-bottom: 1px solid #4c566a;
    padding: 0 12px;
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.editor-icon {
    font-size: 16px;
}

.editor-modified {
    color: #bf616a;
    font-weight: bold;
}

.editor-controls {
    display: flex;
    gap: 4px;
}

.editor-controls button {
    background: none;
    border: none;
    color: #d8dee9;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.editor-controls button:hover {
    background: #4c566a;
}

/* Menu Bar */
.editor-menubar {
    display: flex;
    align-items: center;
    height: 28px;
    background: #434c5e;
    border-bottom: 1px solid #4c566a;
    padding: 0 8px;
}

.editor-menu-item {
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-size: 12px;
    font-weight: 500;
}

.editor-menu-item:hover {
    background: #5e81ac;
    color: #eceff4;
}

/* Main Content */
.editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.editor-sidebar {
    width: 220px;
    background: #3b4252;
    border-right: 1px solid #4c566a;
    display: flex;
    flex-direction: column;
    position: relative;
}

.editor-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #434c5e;
    border-bottom: 1px solid #4c566a;
}

.editor-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #eceff4;
    letter-spacing: 1px;
}

.editor-sidebar-actions {
    display: flex;
    gap: 4px;
}

.editor-sidebar-actions button {
    background: none;
    border: none;
    color: #d8dee9;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: bold;
}

.editor-sidebar-actions button:hover {
    background: #5e81ac;
    color: #eceff4;
}

.editor-file-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.editor-file-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.editor-file-item:hover {
    background: #434c5e;
}

.editor-file-item.active {
    background: #5e81ac;
    border-left-color: #88c0d0;
    color: #eceff4;
}

.editor-file-icon {
    margin-right: 8px;
    font-size: 14px;
}

.editor-file-name {
    font-size: 13px;
    color: #d8dee9;
    font-weight: 500;
}

.editor-file-item.active .editor-file-name {
    color: #eceff4;
    font-weight: 600;
}

/* Removed old resizer styles */

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Removed old tab styles - not used in new editor */

/* Editor Container */
.editor-text-container {
    flex: 1;
    display: flex;
    background: #2e3440;
    overflow: hidden;
}

.editor-gutter {
    width: 50px;
    background: #3b4252;
    border-right: 1px solid #4c566a;
    padding: 10px 0;
    overflow: hidden;
    user-select: none;
}

.editor-line-number {
    height: 20px;
    padding: 0 8px;
    text-align: right;
    font-size: 12px;
    line-height: 20px;
    color: #616e88;
    font-family: 'JetBrains Mono', 'Ubuntu Mono', 'Consolas', monospace;
    font-weight: 500;
}

.editor-text {
    flex: 1;
    background: #2e3440;
    color: #d8dee9;
    border: none;
    outline: none;
    resize: none;
    padding: 10px 15px;
    font-family: 'JetBrains Mono', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 20px;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
}

.editor-text::placeholder {
    color: #616e88;
    font-style: italic;
}

/* Status Bar */
.editor-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    background: #434c5e;
    color: #d8dee9;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
    border-top: 1px solid #4c566a;
}

.editor-status-left,
.editor-status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-status-right span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-weight: 600;
}

.editor-status-right span:hover {
    background: #5e81ac;
    color: #eceff4;
}

/* Shortcuts Help */
.editor-shortcuts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b4252;
    border: 2px solid #4c566a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    padding: 0;
    min-width: 300px;
}

.shortcuts-content {
    padding: 20px;
}

.shortcuts-content h3 {
    margin: 0 0 15px 0;
    color: #88c0d0;
    font-size: 16px;
    text-align: center;
}

.shortcut-list {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.shortcut-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #d8dee9;
}

.shortcut-list kbd {
    background: #434c5e;
    border: 1px solid #4c566a;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #88c0d0;
    font-weight: 600;
}

.shortcuts-content button {
    width: 100%;
    padding: 8px;
    background: #5e81ac;
    color: #eceff4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.shortcuts-content button:hover {
    background: #81a1c1;
}

/* Context Menu */
.editor-context-menu {
    position: fixed;
    background: #3b4252;
    border: 1px solid #4c566a;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    min-width: 160px;
    padding: 4px 0;
}

.editor-context-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #d8dee9;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-context-item:hover {
    background: #5e81ac;
    color: #eceff4;
}

.editor-context-separator {
    height: 1px;
    background: #4c566a;
    margin: 4px 0;
}

/* Notifications */
.vscode-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    background: #383838;
    color: #cccccc;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 13px;
    max-width: 300px;
}

.vscode-notification.show {
    transform: translateX(0);
}

/* Light Theme */
.vscode-container.theme-light {
    background: #ffffff;
    color: #333333;
}

.vscode-container.theme-light .vscode-menubar {
    background: #f3f3f3;
    border-bottom-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-menu-item:hover {
    background: #e5e5e5;
}

.vscode-container.theme-light .vscode-sidebar {
    background: #f3f3f3;
    border-right-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-sidebar-header {
    background: #f3f3f3;
    border-bottom-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-sidebar-title {
    color: #333333;
}

.vscode-container.theme-light .vscode-file-item:hover {
    background: #e8e8e8;
}

.vscode-container.theme-light .vscode-file-name {
    color: #333333;
}

.vscode-container.theme-light .vscode-tab-bar {
    background: #f3f3f3;
    border-bottom-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-tab {
    background: #f3f3f3;
    border-right-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-tab:hover {
    background: #e8e8e8;
}

.vscode-container.theme-light .vscode-tab.active {
    background: #ffffff;
}

.vscode-container.theme-light .vscode-tab-name {
    color: #333333;
}

.vscode-container.theme-light .vscode-editor-container {
    background: #ffffff;
}

.vscode-container.theme-light .vscode-editor-gutter {
    background: #ffffff;
    border-right-color: #e5e5e5;
}

.vscode-container.theme-light .vscode-line-number {
    color: #237893;
}

.vscode-container.theme-light .vscode-editor {
    background: #ffffff;
    color: #333333;
}

.vscode-container.theme-light .vscode-editor::placeholder {
    color: #999999;
}

/* Syntax Highlighting */
.vscode-editor.language-javascript {
    color: #d4d4d4;
}

.vscode-editor.language-html {
    color: #d4d4d4;
}

.vscode-editor.language-css {
    color: #d4d4d4;
}

.vscode-editor.language-markdown {
    color: #d4d4d4;
}

/* Scrollbar Styling */
.editor-text::-webkit-scrollbar,
.editor-file-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.editor-text::-webkit-scrollbar-track,
.editor-file-list::-webkit-scrollbar-track {
    background: #3b4252;
}

.editor-text::-webkit-scrollbar-thumb,
.editor-file-list::-webkit-scrollbar-thumb {
    background: #4c566a;
    border-radius: 4px;
}

.editor-text::-webkit-scrollbar-thumb:hover,
.editor-file-list::-webkit-scrollbar-thumb:hover {
    background: #5e81ac;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vscode-sidebar {
        width: 200px;
    }
    
    .vscode-tab {
        min-width: 100px;
    }
    
    .vscode-editor {
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
.editor-file-item,
.editor-menu-item,
.editor-context-item {
    transition: all 0.2s ease;
}

/* Focus states */
.editor-text:focus {
    outline: none;
}

.editor-file-item:focus {
    outline: 2px solid #5e81ac;
    outline-offset: -2px;
} 