/* Editor Styles */

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 50%;
    overflow: hidden;
    border-bottom: 1px solid #3c3c3c;
  }
  
  .editor-container.fullscreen {
    height: 100%;
  }
  
  .editor-tabs {
    background-color: #252526;
    display: flex;
    border-bottom: 1px solid #3c3c3c;
    overflow-x: auto;
    white-space: nowrap;
    height: 35px;
    scrollbar-width: thin;
    scrollbar-color: #3c3c3c #252526;
  }
  
  .editor-tabs::-webkit-scrollbar {
    height: 5px;
  }
  
  .editor-tabs::-webkit-scrollbar-track {
    background: #252526;
  }
  
  .editor-tabs::-webkit-scrollbar-thumb {
    background-color: #3c3c3c;
  }
  
  .editor-tab {
    padding: 6px 12px;
    background-color: #2d2d2d;
    font-size: 12px;
    border-right: 1px solid #3c3c3c;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    height: 100%;
    min-width: 100px;
  }
  
  .editor-tab.active {
    background-color: #1e1e1e;
  }
  
  .tab-close {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
  }
  
  .tab-close:hover {
    background-color: #3c3c3c;
  }
  
  .editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 35px);
    overflow: hidden;
  }
  
  .code-editor-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    background-color: #1e1e1e;
  }
  
  .line-numbers {
    padding: 12px 5px 12px 10px;
    background-color: #1e1e1e;
    color: #858585;
    text-align: right;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    user-select: none;
    border-right: 1px solid #333;
    min-width: 40px;
  }
  
  #code-editor {
    flex: 1;
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: none;
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    width: 100%;
    height: 100%;
    overflow: auto;
    white-space: pre;
    tab-size: 2;
  }
  
  .editor-status-bar {
    background-color: #007acc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    min-height: 28px;
  }
  
  .status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  #save-btn, #compile-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
  }
  
  #save-btn:hover, #compile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  #file-status {
    color: white;
  }
  
  /* Code editor scrollbar styling */
  #code-editor::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  #code-editor::-webkit-scrollbar-track {
    background: #1e1e1e;
  }
  
  #code-editor::-webkit-scrollbar-thumb {
    background-color: #3c3c3c;
    border-radius: 5px;
  }
  
  #code-editor::-webkit-scrollbar-thumb:hover {
    background-color: #555;
  }
  
  /* Sync scrolling between line numbers and code editor */
  #code-editor, .line-numbers {
    overflow-y: scroll;
    scrollbar-width: thin;
  }