/* ============================================
   OLED Dark Theme - Personal Git Server
   ============================================ */

:root {
  /* Colors - OLED Dark */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-hover: #1a1a1a;
  --border: #222222;
  --border-light: #333333;

  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-dim: #555555;

  --accent: #00ff88;
  --accent-dim: #00aa55;
  --accent-bg: rgba(0, 255, 136, 0.1);

  --error: #ff4444;
  --error-bg: rgba(255, 68, 68, 0.1);
  --warning: #ffaa00;
  --success: #00ff88;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --header-height: 56px;
  --sidebar-width: 280px;
  --max-content-width: 1200px;

  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-normal: 150ms ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

code, pre, .mono {
  font-family: var(--font-mono);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

/* Form Elements */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

/* Buttons */
button, .btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:hover, .btn:hover {
  background: var(--text-primary);
}

button:disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-danger {
  background: var(--error);
}

.btn-danger:hover {
  background: #ff6666;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Utilities */
.text-secondary { color: var(--text-secondary); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-error { color: var(--error); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* Override Prism theme for OLED */
code[class*="language-"],
pre[class*="language-"] {
  background: var(--bg-secondary) !important;
  text-shadow: none !important;
}

pre[class*="language-"] {
  border: 1px solid var(--border);
  margin: 0;
}

.line-numbers .line-numbers-rows {
  border-right: 1px solid var(--border) !important;
}

.line-numbers-rows > span:before {
  color: var(--text-dim) !important;
}
