body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: monospace;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

#status {
  padding: 10px;
  text-align: center;
  font-size: 1.1em;
  background-color: #252526;
  border-bottom: 1px solid #333;
  /* Default state is visible */
  display: block;
}

#status.error {
  color: red;
  font-weight: bold;
}

#terminal-output {
  flex-grow: 1;
  overflow: auto;
  padding: 5px;
  box-sizing: border-box;
  line-height: 1.2;
  font-size: 14px;
}

.terminal-row {
  display: flex;
}

.terminal-cell {
  white-space: pre;
}

.term-fg-default {
  color: #d4d4d4;
}
.term-bg-default {
  background-color: #1e1e1e;
}

/* Additional color classes for ANSI colors */
.term-fg-black {
  color: #000000;
}
.term-fg-red {
  color: #cd3131;
}
.term-fg-green {
  color: #0dbc79;
}
.term-fg-yellow {
  color: #e5e510;
}
.term-fg-blue {
  color: #2472c8;
}
.term-fg-magenta {
  color: #bc3fbc;
}
.term-fg-cyan {
  color: #11a8cd;
}
.term-fg-white {
  color: #e5e5e5;
}

.term-bg-black {
  background-color: #000000;
}
.term-bg-red {
  background-color: #cd3131;
}
.term-bg-green {
  background-color: #0dbc79;
}
.term-bg-yellow {
  background-color: #e5e510;
}
.term-bg-blue {
  background-color: #2472c8;
}
.term-bg-magenta {
  background-color: #bc3fbc;
}
.term-bg-cyan {
  background-color: #11a8cd;
}
.term-bg-white {
  background-color: #e5e5e5;
}

/* Bright variants */
.term-fg-bright-black {
  color: #666666;
}
.term-fg-bright-red {
  color: #f14c4c;
}
.term-fg-bright-green {
  color: #23d18b;
}
.term-fg-bright-yellow {
  color: #f5f543;
}
.term-fg-bright-blue {
  color: #3b8eea;
}
.term-fg-bright-magenta {
  color: #d670d6;
}
.term-fg-bright-cyan {
  color: #29b8db;
}
.term-fg-bright-white {
  color: #ffffff;
}

.term-bg-bright-black {
  background-color: #666666;
}
.term-bg-bright-red {
  background-color: #f14c4c;
}
.term-bg-bright-green {
  background-color: #23d18b;
}
.term-bg-bright-yellow {
  background-color: #f5f543;
}
.term-bg-bright-blue {
  background-color: #3b8eea;
}
.term-bg-bright-magenta {
  background-color: #d670d6;
}
.term-bg-bright-cyan {
  background-color: #29b8db;
}
.term-bg-bright-white {
  background-color: #ffffff;
}

/* Terminal attributes */
.term-blink {
  animation: blink 1s infinite;
}

.term-reverse {
  filter: invert(1);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.cursor {
  background-color: #d4d4d4;
  color: #1e1e1e;
  outline: 1px solid #d4d4d4;
}

/* Input handling elements */
.input-container {
  display: flex;
  align-items: center;
  padding: 5px;
  background-color: #252526;
  border-top: 1px solid #333;
  min-height: 30px;
}

.terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #d4d4d4;
  font-family: monospace;
  font-size: 14px;
  padding: 5px;
  margin-right: 5px;
}

.terminal-input:focus {
  background-color: #2d2d30;
}

.input-indicator {
  color: #d4d4d4;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  margin-right: 5px;
  user-select: none;
}
