:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --surface2: #243040;
  --border: #2d3a4d;
  --text: #e8eef5;
  --muted: #8b9cb3;
  --accent: #3d9cf5;
  --accent-dim: #2a6cb0;
  --success: #3dd68c;
  --danger: #f55353;
  --radius: 10px;
  --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

html[data-theme="light"] {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface2: #e4e9f2;
  --border: #c5d0e0;
  --text: #15202b;
  --muted: #5a6b82;
  --accent: #0b6ecf;
  --accent-dim: #0858a8;
  --success: #0a9f6a;
  --danger: #d92d20;
  --shadow-elevated: 0 10px 32px rgba(15, 25, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.file-ctx-menu button[role="menuitem"]:hover {
  background: var(--surface2);
}

/* Monaco find/replace sits in overlay widgets; keep it above app chrome so Close and controls stay clickable */
.monaco-editor .overlayWidgets {
  z-index: 20000 !important;
}
.monaco-editor .find-widget {
  z-index: 20001 !important;
}
