/* ==========================================================================
   CODE & TEXT EDITOR STYLES
   ========================================================================== */

.editor-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.editor-menubar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: var(--glass-border-subtle);
}

.editor-menu-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.editor-menu-btn {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-secondary);
}

.editor-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.editor-file-badge {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.editor-dirty-indicator {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--warning);
  display: none;
}

.editor-dirty-indicator.visible {
  display: inline-block;
}

.editor-main {
  flex: 1;
  display: flex;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}

.editor-line-numbers {
  width: 44px;
  padding: 12px 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
  background: rgba(0, 0, 0, 0.15);
  border-right: var(--glass-border-subtle);
  overflow: hidden;
}

.editor-textarea {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  resize: none;
  outline: none;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}

.editor-textarea:focus {
  box-shadow: none;
}

.editor-statusbar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.25);
  border-top: var(--glass-border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}
