:root {
  --bg: #0b0e14;
  --titlebar: #141414;
  --terminal: #202224;
  --border: #141414;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --prompt-user: #337b69;   /* cyan for user@host */
  --prompt-path: #2665b8;   /* blue for path */
  --prompt-hash: #e5e7eb;   /* dollar sign color */
  --shadow: rgba(0,0,0,0.4);
}

body {
  margin: 0;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
}

.terminal {
  width: 90%;
  max-width: 640px;
  border: 1px solid var(--border);
  background: var(--terminal);
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: 6px 6px 0 0; /* top corners rounded, bottom sharp */
  overflow: hidden;
}

.titlebar {
  background: var(--titlebar);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center; /* center title */
  font-size: 13px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  position: relative; /* for absolute buttons */
}

.titlebar .title {
  font-weight: bold;
}

.window-buttons {
  position: absolute;
  right: 10px;
  display: flex;
  gap: 6px;
}

.window-btn {
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.window-btn:hover {
  color: #e5e7eb;
}

.title {
  margin-left: 6px;
  user-select: none;
  font-weight: bold;
}

.content {
  padding: 16px;
  font-size: 16px;
  color: var(--text);
  min-height: 120px;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}

.line {
  display: flex;          
  align-items: center;
  line-height: 1.5;
  white-space: pre-wrap;
}

.prompt, .path, .hash, .input, .cursor {
  display: inline;
  line-height: 1.5;
  vertical-align: baseline;
}

.hash{
    padding-left: 1.5px;
}

.prompt { color: var(--prompt-user); }
.path { color: var(--prompt-path); }
.hash { color: var(--prompt-hash); }

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}