/* css-input.css — caixa de digitar, gravação e menu de anexo */
.input-area {
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.attach-menu {
  display: none;
  flex-direction: column; gap: 4px;
  margin-bottom: 8px; padding: 8px;
  background: #000;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px; width: fit-content;
}
.attach-menu.open { display: flex; animation: fadeUp .2s ease both; }
.attach-close-btn {
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; align-self: flex-end; margin-bottom: 4px;
}
.attach-close-btn svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.attach-item {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: #fff;
  font-family: var(--font); font-size: 14px;
  cursor: pointer; padding: 6px 10px; border-radius: 9px;
}
.attach-item:hover { background: rgba(255,255,255,.09); }
.attach-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.attach-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap {
  display: flex; flex-direction: column;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 10px 8px 14px; gap: 6px;
}
.input-wrap:focus-within { border-color: rgba(0,255,255,.4); }
.text-input {
  width: 100%; background: transparent;
  border: none; outline: none;
  color: var(--text); font-family: var(--font);
  font-size: 15px; resize: none;
  max-height: 293px; line-height: 1.5; min-height: 20px;
}
.text-input::placeholder { color: var(--muted); }
.input-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.input-spacer { flex: 1; }
.clip-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; display: flex; align-items: center;
  padding: 4px; border-radius: 50%; flex-shrink: 0;
}
.clip-btn:hover { color: var(--neon-cyan); }
.clip-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: transform .15s;
}
.round-btn:hover { transform: scale(1.08); }
.btn-mic  { background: rgba(0,255,255,.14); color: var(--neon-cyan); }
.btn-mic  svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-send { background: #fff; }
.btn-send svg { width: 16px; height: 16px; }
.recording-bar {
  display: none; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 30px; padding: 8px 14px;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; animation: recPulse 1s ease-in-out infinite; flex-shrink:0; }
@keyframes recPulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.rec-timer { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.rec-waves { display: flex; align-items: center; gap: 2px; flex: 1; height: 20px; }
.rw { flex:1; max-width:4px; border-radius:2px; background:#ef4444; opacity:.5; animation: rwAnim 1s ease-in-out infinite; }
.rw:nth-child(odd)  { height:7px;  animation-delay:.1s; }
.rw:nth-child(even) { height:14px; animation-delay:.3s; }
@keyframes rwAnim { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.7)} }
.stop-btn { width:30px; height:30px; border-radius:50%; background:#ef4444; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.stop-btn svg { width:11px; height:11px; fill:white; }

/* Os 4 icones da barra (bolinha igual ao antigo) */
.input-bottom-row .btn-barra {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.input-bottom-row .btn-barra:hover { background: rgba(0,255,255,.12); }
.input-bottom-row .btn-barra svg { width: 20px; height: 20px; fill: var(--muted); }
.input-bottom-row .btn-barra:hover svg { fill: var(--neon-cyan); }
