.code-editor-container {
  height: 100%;
  font-family: JetBrains Mono, Fira Code, Monaco, Cascadia Code, Roboto Mono, monospace;
}

.code-editor-wrapper {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000004d;
}

.code-editor-header {
  background: #010409;
  border-bottom: 1px solid #21262d;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  display: flex;
}

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

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

.code-editor-control-btn {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  box-shadow: 0 1px 2px #0006;
}

.code-editor-control-red {
  background: #ff5f57;
  border: 1px solid #e0443e;
}

.code-editor-control-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.code-editor-control-green {
  background: #28ca42;
  border: 1px solid #24a134;
}

.code-editor-file-info {
  cursor: default;
  padding: 4px 2px;
}

.code-editor-file-name {
  color: #f0f6fc;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 300px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}

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

.code-editor-action-btn {
  color: #7d8590;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 6px;
  transition: all .2s;
  display: flex;
}

.code-editor-action-btn:hover {
  color: #f0f6fc;
  background: #21262d;
}

.code-editor-content {
  background: #0d1117;
  overflow: auto;
}

.code-editor-inner {
  min-height: 100%;
  display: flex;
}

.code-editor-line-numbers {
  user-select: none;
  background: #010409;
  border-right: 1px solid #21262d;
  flex-shrink: 0;
}

.code-editor-line-numbers-inner {
  color: #484f58;
  text-align: right;
  min-width: 2rem;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.code-editor-line-number {
  justify-content: flex-end;
  align-items: center;
  height: 19.5px;
  display: flex;
}

.code-editor-code-area {
  flex: 1;
  overflow: auto;
}

.code-editor-code-area .hljs {
  color: #e1e4e8;
  background: none;
}

.code-editor-pre {
  color: #f0f6fc;
  tab-size: 2;
  background: none;
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  overflow: visible;
}

.code-editor-code {
  color: #f0f6fc;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none !important;
}

.code-editor-status-bar {
  color: #7d8590;
  background: #010409;
  border-top: 1px solid #21262d;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  font-size: 11px;
  display: flex;
}

.code-editor-status-left, .code-editor-status-right {
  gap: 16px;
  display: flex;
}

.code-editor-status-item {
  color: #7d8590;
}

.code-editor-container ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.code-editor-container ::-webkit-scrollbar-track {
  background: #161b22;
  border-radius: 4px;
}

.code-editor-container ::-webkit-scrollbar-thumb {
  background: #484f58;
  border-radius: 4px;
}

.code-editor-container ::-webkit-scrollbar-thumb:hover {
  background: #6e7681;
}

.code-editor-container ::selection {
  background-color: #6366f140;
}

.code-editor-container:focus-within {
  outline: none;
}

.code-editor-code .hljs {
  color: #f0f6fc !important;
  background: none !important;
}

.code-editor-code .hljs-keyword, .code-editor-code .hljs-selector-tag, .code-editor-code .hljs-literal, .code-editor-code .hljs-title, .code-editor-code .hljs-section, .code-editor-code .hljs-type, .code-editor-code .hljs-name {
  color: #ff7b72 !important;
}

.code-editor-code .hljs-string, .code-editor-code .hljs-template-literal {
  color: #a5d6ff !important;
}

.code-editor-code .hljs-comment {
  font-style: italic;
  color: #8b949e !important;
}

.code-editor-code .hljs-number {
  color: #79c0ff !important;
}

.code-editor-code .hljs-built_in, .code-editor-code .hljs-builtin-name {
  color: #7ee787 !important;
}

.code-editor-code .hljs-variable, .code-editor-code .hljs-template-variable {
  color: #ffa657 !important;
}

.code-editor-code .hljs-function, .code-editor-code .hljs-class {
  color: #d2a8ff !important;
}

.code-editor-code .hljs-attr, .code-editor-code .hljs-attribute {
  color: #79c0ff !important;
}

.code-editor-code .hljs-tag {
  color: #7ee787 !important;
}

.code-editor-code .hljs-doctag {
  color: #f2cc60 !important;
}

.code-editor-code .hljs-meta {
  color: #d2a8ff !important;
}

.code-editor-code .hljs-strong {
  font-weight: bold;
  color: #f0f6fc !important;
}

.code-editor-code .hljs-code {
  border-radius: 3px;
  padding: 2px 4px;
  color: #a5d6ff !important;
}

.code-editor-code .hljs-formula {
  border-radius: 3px;
  padding: 2px 4px;
  color: #7ee787 !important;
}

.code-editor-code .hljs-emphasis {
  font-style: italic;
  color: #f0f6fc !important;
}

.code-editor-code .hljs-quote {
  font-style: italic;
  color: #8b949e !important;
}

.code-editor-code .hljs-bullet {
  color: #ff7b72 !important;
}

.code-editor-code .hljs-subst {
  color: #f0f6fc !important;
}

.code-editor-code .hljs-regexp {
  color: #7ee787 !important;
}

.code-editor-code .hljs-symbol {
  color: #79c0ff !important;
}

.code-editor-code .hljs-deletion {
  background: #f8514926;
  color: #ffa198 !important;
}

.code-editor-code .hljs-addition {
  background: #2ea04326;
  color: #56d364 !important;
}

