/* ── INPUT BAR ───────────────────────────────── */
.input-area { padding: 12px 16px 16px; position: relative; }
.input-container { max-width: 680px; margin: 0 auto; position: relative; }
.input-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 18px;
  transition: border-color 0.2s;
}
.input-box:focus-within { border-color: var(--border); }
.input-top { display: flex; align-items: flex-end; padding: 10px 12px 8px; gap: 8px; }
#chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
  caret-color: #fff;
}
#chat-input::placeholder { color: var(--text-muted); }
.input-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 10px;
}
.input-tools { display: flex; gap: 2px; }
.input-tool-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.input-tool-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.input-tool-btn.active-tool { color: var(--accent); background: rgba(16,163,127,0.1); }

/* ── SEND BUTTON ─────────────────────────────── */
.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
  color: var(--bg-primary);
  opacity: 0.4;
}
.send-btn.active { opacity: 1; background: #fff; }
.send-btn.active:active {
  transform: scale(0.88);
  transition: transform 0.08s ease-in;
}
@media (hover: hover) {
  .send-btn.active:hover {
    transform: scale(1.06);
    background: #f0f0f0;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
  }
}
.send-btn.stop-btn { opacity: 1; background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border); }

/* ── INPUT FOOTER ────────────────────────────── */
.input-footer { text-align: center; padding-top: 6px; font-size: 12px; color: var(--text-muted); }

/* ── ATTACHMENT PREVIEW ──────────────────────── */
.attach-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-hover);
  border-radius: 10px;
  margin: 6px 12px 0;
  flex-wrap: wrap;
}
.attach-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-active);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.attach-chip button { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.attach-chip button:hover { color: var(--text-primary); }

/* ── VOICE RECORDING ─────────────────────────── */
.voice-recording { animation: voicePulse 1s ease-in-out infinite; color: #ff5f5f !important; }

/* ── FILE INPUT ──────────────────────────────── */
#file-input { display: none; }

@media (max-width: 768px) {
  .input-area { padding: 8px 12px 12px; }
}
