/* ==========================================================================
   FollowLoop-Web 三大核心模組組件樣式 (components.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   模組一：Multi-modal Ingestion Gate (直傳門閥組件)
   -------------------------------------------------------------------------- */
.ingestion-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.card-panel {
  background: var(--bg-card-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.panel-title .icon {
  color: var(--primary-light);
}

/* 拖曳區 Dropzone */
.dropzone {
  border: 2px dashed var(--border-glass-glow);
  background: var(--bg-dropzone);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-light);
  background: var(--bg-dropzone-hover);
  box-shadow: var(--shadow-glow);
}

.dropzone-icon {
  font-size: 48px;
  margin-bottom: 12px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dropzone-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dropzone-subtext {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* 進度條 Progress Bar */
.progress-container {
  margin-top: 20px;
  display: none;
}

.progress-container.active {
  display: block;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--bg-btn-ghost);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width 0.2s linear;
}

/* 麥克風錄音組件 */
.recorder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--bg-panel-deep);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.mic-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.mic-btn:hover {
  transform: scale(1.08);
}

.mic-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.timer-text {
  margin-top: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary-light);
}

/* 快捷補充備註框 */
.note-textarea {
  width: 100%;
  height: 110px;
  background: var(--bg-panel-medium);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
}

.note-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

