/* 変換待ちの添付の表示（pending_upload.blade.php / admin-attachment-uploads.js）と、
   添付バーの容量超過の案内。飯塚デザインの app.css には触らず、追加分だけをこのファイルで足す。
   font-size は絶対値必須: 親 .bubble が font-size: 0（app.css の空白除去テク）のため。 */

.upload-pending-row .bubble-text {
  display: block;
}

.upload-pending-row .upload-pending-note {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.upload-pending-row.is-failed .upload-pending-note {
  color: #c62828;
  opacity: 1;
}

.upload-pending-cancel {
  display: inline;
  margin: 0 0 0 8px;
}

.upload-pending-cancel button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.admin-attachment-size-error {
  color: #c62828;
  font-weight: 600;
}

.admin-attachment-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── マイクアイコン・録音（admin-voice-recorder.js） ─────────────────────── */

/* 写真・マイク・本文・送信の 4 列（app.css の 3 列指定を、マイク追加ぶん上書き）。 */
.admin-message-input .send-box {
  position: relative;
  grid-template-columns: 34px 34px minmax(0, 1fr) 26px;
}

.admin-voice-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.admin-voice-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 180px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
}

.admin-voice-menu[hidden] {
  display: none;
}

.admin-voice-menu button {
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
  background: #fff;
  color: var(--color-text, #222);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.admin-voice-menu button:last-child {
  border-bottom: 0;
}

.admin-voice-recorder {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--color-field, #f3f3f3);
  color: var(--color-text, #222);
  font-size: 13px;
  font-weight: 700;
}

.admin-voice-recorder[hidden] {
  display: none;
}

.admin-voice-status {
  flex: 1;
}

.admin-voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d32f2f;
  animation: admin-voice-blink 1s ease-in-out infinite;
}

@keyframes admin-voice-blink {
  50% { opacity: 0.25; }
}

.admin-voice-stop,
.admin-voice-cancel {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.admin-voice-stop {
  background: var(--color-brand);
  color: #fff;
}

.admin-voice-cancel {
  background: rgb(0 0 0 / 10%);
  color: var(--color-text, #222);
}

.admin-attachment-audio-preview {
  grid-column: 1 / -1;
  width: 100%;
  height: 40px;
  margin-top: 6px;
}

.admin-attachment-audio-preview[hidden] {
  display: none;
}
