/* ── TERMINAL.CSS — Dark Terminal theme variables, typography, base elements ── */

:root {
  --green:       #00ff41;
  --green-dim:   #00cc55aa;
  --green-dark:  #003310;
  --amber:       #ffa500;
  --amber-dim:   #ffa50060;
  --bg:          #000000;
  --bg-panel:    #050505;
  --bg-input:    #0a0a0a;
  --border:      #00ff4140;
  --border-bright: #00ff41;
  --font-mono:   'Courier New', Courier, monospace;
  --glow-green:  0 0 6px #00ff41, 0 0 18px #00ff4166;
  --glow-amber:  0 0 6px #ffa500, 0 0 18px #ffa50066;
  --glow-sm:     0 0 4px #00ff41;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

pre {
  font-family: var(--font-mono);
  color: var(--green);
  text-shadow: var(--glow-sm);
}

/* ── LINKS ── */
a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  text-shadow: var(--glow-amber);
}

/* ── BUTTONS ── */
button {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.08s, color 0.08s, box-shadow 0.08s;
  outline: none;
}
button:hover {
  background: var(--green);
  color: #000;
  box-shadow: var(--glow-green);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
button:disabled:hover {
  background: transparent;
  color: var(--green);
  box-shadow: none;
}

button.amber {
  border-color: var(--amber);
  color: var(--amber);
}
button.amber:hover {
  background: var(--amber);
  color: #000;
  box-shadow: var(--glow-amber);
}

/* ── INPUTS / SELECT ── */
select, input[type="text"], input[type="file"] {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.1s, box-shadow 0.1s;
  appearance: none;
  -webkit-appearance: none;
}
select:hover, select:focus,
input[type="text"]:hover, input[type="text"]:focus {
  border-color: var(--green);
  box-shadow: var(--glow-sm);
}
select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300ff41'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
select option {
  background: #000;
  color: var(--green);
}

/* ── FILE INPUT WRAPPER ── */
.file-input-wrapper {
  position: relative;
  display: inline-block;
}
.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-input-btn {
  display: inline-block;
  pointer-events: none;
}

/* ── BLINK CURSOR ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor::after {
  content: '_';
  display: inline;
  animation: blink 1s step-start infinite;
  color: var(--green);
}

/* ── FLASH (gesture change) ── */
@keyframes flash {
  0%   { background: transparent; }
  30%  { background: #00ff4120; }
  100% { background: transparent; }
}
.flash {
  animation: flash 0.35s ease-out forwards;
}

/* ── PULSE (ACTIVE status) ── */
@keyframes pulse {
  0%, 100% { text-shadow: 0 0 4px var(--green); }
  50%       { text-shadow: 0 0 14px var(--green), 0 0 28px var(--green); }
}
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── PANEL BORDER GLOW (active FX) ── */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 8px var(--amber), inset 0 0 4px #ffa50010; }
  50%       { box-shadow: 0 0 20px var(--amber), inset 0 0 8px #ffa50020; }
}
.active-fx {
  animation: borderGlow 1.2s ease-in-out infinite;
  border-color: var(--amber) !important;
}

/* ── BOOT LINE FADE-IN ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.boot-line {
  animation: fadeIn 0.2s ease-out forwards;
}
