/* GNOME Terminal — Ubuntu Web. All rules scoped under .app-terminal.
 * The content area keeps the Ubuntu aubergine palette in BOTH color schemes. */

.app-terminal .window-content {
  background: #300a24;
}

.app-terminal .term {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(48, 10, 36, 0.97);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.45;
  cursor: text;
}

.app-terminal .term-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 9px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.app-terminal .term-scroll::-webkit-scrollbar { width: 8px; }
.app-terminal .term-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

.app-terminal .term-out,
.app-terminal .term-live {
  margin: 0;
  font: inherit;
  color: inherit;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.app-terminal .term-out { user-select: text; }
.app-terminal .term ::selection { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* hidden key-capture textarea */
.app-terminal .term-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  padding: 0;
  border: none;
  opacity: 0;
  resize: none;
  pointer-events: none;
}

/* block cursor */
.app-terminal .term-cursor {
  background: #ffffff;
  color: #300a24;
  animation: app-terminal-blink 1.15s steps(1, end) infinite;
}
.app-terminal .term.typing .term-cursor { animation: none; }
.app-terminal .term.blurred .term-cursor {
  animation: none;
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
@keyframes app-terminal-blink {
  0%, 49% { background: #ffffff; color: #300a24; }
  50%, 100% { background: transparent; color: #ffffff; }
}

/* ANSI-ish palette (Tango, as GNOME Terminal ships) */
.app-terminal .t-b      { font-weight: 700; }
.app-terminal .t-green  { color: #8ae234; }
.app-terminal .t-dgreen { color: #4e9a06; }
.app-terminal .t-blue   { color: #729fcf; }
.app-terminal .t-mag    { color: #ad7fa8; }
.app-terminal .t-red    { color: #ef2929; }
.app-terminal .t-yel    { color: #fce94f; }
.app-terminal .t-cyan   { color: #34e2e2; }
.app-terminal .t-orange { color: #e95420; }
.app-terminal .t-white  { color: #ffffff; }
.app-terminal .t-dim    { color: rgba(255, 255, 255, 0.62); }

/* neofetch color swatch strip */
.app-terminal .nfc0  { background: #2e3436; }
.app-terminal .nfc1  { background: #cc0000; }
.app-terminal .nfc2  { background: #4e9a06; }
.app-terminal .nfc3  { background: #c4a000; }
.app-terminal .nfc4  { background: #3465a4; }
.app-terminal .nfc5  { background: #75507b; }
.app-terminal .nfc6  { background: #06989a; }
.app-terminal .nfc7  { background: #d3d7cf; }
.app-terminal .nfc8  { background: #555753; }
.app-terminal .nfc9  { background: #ef2929; }
.app-terminal .nfc10 { background: #8ae234; }
.app-terminal .nfc11 { background: #fce94f; }
.app-terminal .nfc12 { background: #729fcf; }
.app-terminal .nfc13 { background: #ad7fa8; }
.app-terminal .nfc14 { background: #34e2e2; }
.app-terminal .nfc15 { background: #eeeeec; }

/* cmatrix overlay */
.app-terminal .term-matrix {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 6px 9px;
  overflow: hidden;
  background: #300a24;
  color: #4e9a06;
  font: inherit;
  white-space: pre;
}
.app-terminal .term-matrix .t-green { color: #8ae234; }
