html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000;
  font-family: "Fira Code", "Courier New", monospace;
  color: #00ff7f;
}

.terminal {
  box-sizing: border-box;
  padding: 12px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.title-bar {
  color: #ccc;
  margin-bottom: 8px;
  font-size: 13px;
}

.prompt-line {
  white-space: pre;
  margin-bottom: 8px;
}

.prompt-user {
  color: #4ec9b0;
}

.prompt-host {
  color: #569cd6;
}

.prompt-path {
  color: #dcdcaa;
}

.prompt-symbol {
  color: #c586c0;
}

/* YAML header block */
.yaml-header {
  color: #7ec699;
  font-size: 13px;
  margin-bottom: 8px;
  padding-left: 4px;
  border-left: 2px solid #1f4;
  opacity: 0.9;
}

.yaml-header pre {
  margin: 0;
  white-space: pre;
}

.editor-container {
  flex: 1;
  border-top: 1px solid #222;
  padding-top: 4px;
  overflow-y: auto;
}

#editor {
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  min-height: 100%;
}

.toolbar {
  margin-top: 4px;
  font-size: 11px;
  color: #888;
}

.toolbar button {
  background: #111;
  color: #ccc;
  border: 1px solid #333;
  padding: 2px 6px;
  margin-right: 4px;
  font-size: 11px;
  cursor: pointer;
}

.toolbar button:hover {
  background: #222;
}

.status-bar {
  color: #666;
  font-size: 11px;
  border-top: 1px solid #222;
  padding-top: 4px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Fake CLI filename prompt */
.prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
}

.prompt-box {
  background: #000;
  border: 1px solid #00ff7f;
  padding: 20px;
  width: 300px;
}

.prompt-text {
  margin-bottom: 8px;
  color: #00ff7f;
}

#filename-input {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #00ff7f;
  padding: 4px;
  font-family: inherit;
  margin-bottom: 12px;
}

.prompt-buttons {
  display: flex;
  justify-content: flex-end;
}

.prompt-buttons button {
  background: #111;
  color: #ccc;
  border: 1px solid #333;
  padding: 3px 8px;
  margin-left: 6px;
  cursor: pointer;
}

.prompt-buttons button:hover {
  background: #222;
}

::selection {
  background: #005f5f;
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
}
