/* ── Terminal Container ─────────────────────── */
.terminal {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Terminal Header ────────────────────────── */
.terminal-header {
  background: var(--panel);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--accent-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--t3);
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #00aaff; }

.terminal-title {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--t3);
  margin-left: auto;
  letter-spacing: 0.05em;
}

/* ── Terminal Body ──────────────────────────── */
.terminal-body, .term-body {
  padding: 28px 32px 32px;
  min-height: 200px;
}

.terminal-line {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-prompt, .term-prompt, .term-label, .term-arrow {
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

.term-label {
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Terminal Field ─────────────────────────── */
.term-field, .terminal-field {
  margin-bottom: 28px;
}

/* ── Terminal Input ─────────────────────────── */
.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.terminal-input, .term-input, .term-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--fm);
  font-size: 14px;
  color: var(--t1);
  padding: 10px 0;
  width: 100%;
}

.term-textarea {
  min-height: 90px;
  resize: none;
}

/* ── Input Error State ──────────────────────── */
.term-input.input-error {
  color: #ff4d4d;
  border-bottom: 1px solid #ff4d4d;
}

.term-input.input-error::placeholder {
  color: #ff4d4d;
}

.terminal-input::placeholder, 
.term-input::placeholder,
.term-textarea::placeholder {
  font-size: 13px;
  color: var(--t2);
}

@media (max-width: 768px) {
  .terminal-input, .terminal-textarea, .term-input, .term-textarea {
    font-size: 16px !important;
  }
}

/* ── Terminal Success State ─────────────────── */
.terminal-success {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  margin-top: 16px;
}

.terminal-success.active {
  display: flex;
}

.terminal-success-text {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--accent);
}

/* ── Blinking Cursor ────────────────────────── */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
