/* Chat Footer / GiriÅŸ Kutusu */
.chat-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
  padding: 10px 24px 12px;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--panel-border);
}

.suggested-questions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.suggested-chip {
  background-color: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggested-chip:hover {
  border-color: var(--active-border);
  color: var(--text-primary);
  background-color: var(--hover-bg);
}

.composer-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  flex-shrink: 0;
}

.composer-file-preview {
  width: min(320px, 100%);
  min-height: 64px;
  margin: 0 0 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.composer-file-preview.hidden,
.composer-file-preview .hidden {
  display: none;
}

.composer-file-thumbnail {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--hover-bg);
}

.composer-file-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--hover-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.composer-file-meta {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.composer-file-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-file-size {
  color: var(--text-secondary);
  font-size: 11px;
}

.composer-file-remove {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.composer-file-remove:hover {
  color: var(--accent-red, #ef4444);
  background: var(--hover-bg);
  border-color: var(--panel-border);
}

.composer-input-wrapper {
  background-color: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 56px;
  max-height: 200px;
  overflow-y: auto;
}

.composer-input-wrapper textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 4px;
  max-height: 150px;
  line-height: 1.5;
}

.composer-input-wrapper textarea::placeholder {
  color: var(--text-secondary);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.action-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.action-btn:hover {
  background-color: var(--hover-bg);
  color: var(--text-primary);
}

.action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.attachment-btn:focus-visible,
.composer-image-remove:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Sesli giriş: kayıt açık (stop ikonu + kırmızı nabız) */
#voiceInputBtn.listening,
.action-btn.listening {
  color: #fff !important;
  background-color: var(--accent-red, #ef4444) !important;
  border-color: var(--accent-red, #ef4444) !important;
  animation: voiceMicPulse 1.25s ease-in-out infinite;
}

/* Yazıya çevirme */
#voiceInputBtn.transcribing,
.action-btn.transcribing {
  color: var(--brand, #2d5fde) !important;
  background-color: var(--brand-soft, rgba(45, 95, 222, 0.14)) !important;
  border-color: var(--brand-soft-border, rgba(45, 95, 222, 0.3)) !important;
  cursor: wait;
  pointer-events: none;
  opacity: 0.95;
}

#voiceInputBtn .voice-spin,
.action-btn .voice-spin {
  animation: voiceSpin 0.85s linear infinite;
}

@keyframes voiceMicPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

#voiceRecordingStatus {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-size: 13px;
}
#voiceRecordingStatus[hidden] { display: none; }

.composer-input-wrapper.voice-mode {
  align-items: center;
  border-color: var(--active-border);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.composer-input-wrapper.voice-mode > textarea,
.composer-input-wrapper.voice-mode > .composer-actions {
  display: none;
}

.voice-recording-label {
  flex: 0 0 auto;
  font-weight: 600;
}

.voice-waveform {
  height: 28px;
  min-width: 110px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--brand);
}

.voice-waveform i {
  width: 3px;
  height: 7px;
  background: currentColor;
  border-radius: 999px;
  animation: voiceWave 0.8s ease-in-out infinite alternate;
}

.voice-waveform i:nth-child(2n) { animation-duration: 0.55s; }
.voice-waveform i:nth-child(3n) { animation-duration: 1.05s; }
.voice-waveform i:nth-child(4n) { animation-delay: -0.35s; }
.voice-waveform i:nth-child(5n) { animation-delay: -0.6s; }

.voice-recording-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#voiceRecordingStatus button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--hover-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  cursor: pointer;
}

#voiceRecordingStatus button:hover {
  border-color: var(--active-border);
}

#voiceRecordingStatus .voice-recording-confirm {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand-deep);
}

#voiceRecordingStatus button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@keyframes voiceWave {
  from { height: 5px; opacity: 0.55; }
  to { height: 24px; opacity: 1; }
}

@keyframes voiceSpin {
  to {
    transform: rotate(360deg);
  }
}

.send-btn {
  background-color: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand-deep);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 36px;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  box-shadow: 0 1px 3px var(--brand-soft);
}

.send-btn:hover:not(:disabled) {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
  filter: brightness(1.05);
}

.send-btn:disabled {
  background-color: var(--active-bg);
  color: var(--text-secondary);
  border-color: var(--panel-border);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  opacity: 0.85;
}

/* Yanıt beklenirken "Durdur" modu — kullanıcı üretimi iptal edebilir */
.send-btn.is-stop {
  background-color: var(--panel);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
  box-shadow: none;
}

.send-btn.is-stop:hover:not(:disabled) {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  filter: none;
}

.web-toggle-btn.active {
  color: var(--brand);
  background-color: var(--brand-soft);
  border-radius: 8px;
}

.spk-warning-band {
  font-size: min(10.5px, 1.4vw);
  color: var(--text-secondary);
  opacity: 0.6;
  text-align: center;
  padding: 0 12px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  line-height: 1.35;
  white-space: nowrap;
}

.spk-warning-band strong {
  font-weight: 400;
}
