:root {
  --bg-primary: #080b12;
  --bg-secondary: #101620;
  --bg-tertiary: #171f2b;
  --bg-panel: #0c111b;
  --text-primary: #d9e2ef;
  --text-secondary: #8ea0b8;
  --text-muted: #64748b;
  --text-accent: #64b5ff;
  --text-green: #7ee787;
  --text-yellow: #f2cc60;
  --border-color: #223047;
  --border-strong: #31425d;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top left, rgba(100, 181, 255, 0.12), transparent 28rem),
    linear-gradient(135deg, #070a10 0%, #0a1018 45%, #0a0d14 100%);
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 1060px;
  min-height: 100vh;
  overflow-x: hidden;
  padding: clamp(0.75rem, 3vw, 2rem);
  width: 100%;
}

a,
button {
  font: inherit;
}

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

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(100, 181, 255, 0.45);
}

header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

h1 {
  color: var(--text-green);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin: 0.25rem 0 1rem;
}

p {
  margin: 0 0 1.1rem;
}

button {
  background: transparent;
  border: 1px solid var(--text-yellow);
  border-radius: 4px;
  color: var(--text-yellow);
  cursor: pointer;
  padding: 0.58rem 0.82rem;
}

.button-link {
  border: 1px solid var(--text-yellow);
  border-radius: 4px;
  color: var(--text-yellow);
  display: inline-block;
  padding: 0.58rem 0.82rem;
}

.button-link:hover {
  background: var(--text-yellow);
  color: var(--bg-primary);
  text-shadow: none;
}

button:hover {
  background: var(--text-yellow);
  color: var(--bg-primary);
}

.container,
.terminal-window,
.terminal-body {
  max-width: 100%;
  min-width: 0;
}

.prompt {
  color: var(--text-green);
  font-weight: 700;
}

.prompt-path {
  color: var(--text-accent);
}

.prompt-line {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35rem;
  margin-bottom: 0.75rem;
}

.status-line,
.terminal-header {
  color: var(--text-secondary);
}

.terminal-window {
  background: rgba(8, 11, 18, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.terminal-titlebar {
  align-items: center;
  background: linear-gradient(180deg, rgba(23, 31, 43, 0.98), rgba(12, 17, 27, 0.98));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
}

.window-controls {
  display: flex;
  gap: 0.45rem;
}

.window-controls span {
  border-radius: 50%;
  height: 0.72rem;
  width: 0.72rem;
}

.window-controls span:nth-child(1) { background: #ff5f57; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #28c840; }

.terminal-body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg-panel);
  background-size: 100% 32px;
  padding: clamp(1rem, 3.5vw, 2rem);
}

.terminal-header {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.menu-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.menu-item {
  align-items: baseline;
  border-bottom: 1px solid rgba(34, 48, 71, 0.72);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(10rem, 1fr) minmax(7rem, auto) minmax(10rem, auto) auto;
  padding: 0.68rem 0;
}

.menu-item:hover {
  background: rgba(100, 181, 255, 0.035);
}

.file-mode {
  color: var(--text-secondary);
  white-space: nowrap;
}

.muted {
  color: var(--text-muted);
}

.name-button {
  border: 0;
  color: var(--text-accent);
  padding: 0;
}

.name-button:hover {
  background: transparent;
  color: var(--text-primary);
}

.output {
  background-color: rgba(0, 0, 0, 0.45);
  border-left: 3px solid var(--text-green);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  min-height: 1rem;
  padding: 1rem;
}

.output:empty {
  display: none;
}

footer {
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 4rem;
  padding-top: 2rem;
}

@media (max-width: 840px) {
  .menu-item {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}
