/* ── STT 목록 페이지 ── */
.stt-page { padding: 24px; height: 100%; display: flex; flex-direction: column; }
.stt-header { margin-bottom: 16px; }
.stt-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.stt-toolbar { display: flex; justify-content: space-between; align-items: center; }

/* 삭제 바 */
.stt-delete-bar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: var(--bg-hover, #f3f4f6); border: 1px solid var(--border, #d1d5db);
  border-radius: 6px; margin-top: 8px; font-size: 13px;
}
.stt-btn--delete {
  background: transparent; color: #6b7280; border: 1px solid var(--border, #d1d5db);
}
.stt-btn--delete:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

/* Tabulator 체크박스 가운데 정렬 (헤더 + 셀) */
.stt-table-wrap .tabulator-col:first-child .tabulator-col-content,
.stt-table-wrap .tabulator-row .tabulator-cell:first-child {
  text-align: center;
}

/* 탭 */
.stt-tabs { display: flex; gap: 4px; }
.stt-tab {
  padding: 6px 16px; border-radius: 6px; border: 1px solid var(--border, #d1d5db);
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.stt-tab:hover { background: var(--bg-hover, #f3f4f6); }
.stt-tab.active { background: var(--brand, #2563eb); color: #fff; border-color: var(--brand, #2563eb); }

/* 버튼 */
.stt-btn {
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border, #d1d5db);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s;
}
.stt-btn:hover { background: var(--bg-hover, #f3f4f6); }
.stt-btn--primary { background: var(--brand, #2563eb); color: #fff; border-color: var(--brand, #2563eb); }
.stt-btn--primary:hover { background: #1d4ed8; }
.stt-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.stt-btn--sm { padding: 4px 10px; font-size: 12px; }

/* 테이블 */
.stt-table-wrap { flex: 1; min-height: 0; }

/* ── 업로드 모달 ── */
.stt-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.stt-modal {
  background: #fff; border-radius: 12px; width: 560px; max-height: 80vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.stt-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.stt-modal-header h2 { font-size: 16px; font-weight: 600; margin: 0; }
.stt-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #9ca3af; }
.stt-modal-close:hover { color: #111; }
.stt-modal-footer {
  padding: 12px 20px; border-top: 1px solid var(--border, #e5e7eb);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* 드래그앤드롭 */
.stt-upload-zone {
  margin: 20px; padding: 40px; border: 2px dashed var(--border, #d1d5db);
  border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.stt-upload-zone:hover,
.stt-upload-zone.dragover { border-color: var(--brand, #2563eb); background: #eff6ff; }
.stt-upload-icon { font-size: 36px; color: #9ca3af; margin-bottom: 12px; }
.stt-upload-zone.dragover .stt-upload-icon { color: var(--brand, #2563eb); }
.stt-upload-text { font-size: 14px; font-weight: 500; color: #374151; margin: 0; }
.stt-upload-hint { font-size: 12px; color: #9ca3af; margin: 4px 0 0; }

/* 파일 목록 */
.stt-file-list { margin: 0 20px; max-height: 240px; overflow-y: auto; }
.stt-file-list table { width: 100%; font-size: 13px; border-collapse: collapse; }
.stt-file-list th { text-align: left; padding: 6px 8px; color: #6b7280; font-weight: 500; border-bottom: 1px solid #e5e7eb; }
.stt-file-list td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; }
.stt-file-list .stt-parse-ok { color: #059669; }
.stt-file-list .stt-parse-fail { color: #dc2626; }

/* ── 상세 페이지 ── */
.stt-detail-page { padding: 24px; height: 100%; display: flex; flex-direction: column; }
.stt-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.stt-back-link { color: #6b7280; text-decoration: none; font-size: 14px; }
.stt-back-link:hover { color: #111; }
.stt-detail-info { display: flex; align-items: center; gap: 10px; }
.stt-detail-phone { font-size: 18px; font-weight: 700; }
.stt-detail-date { font-size: 14px; color: #6b7280; }

/* 배지 */
.stt-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.stt-badge--partner { background: #dbeafe; color: #1d4ed8; }
.stt-badge--unknown { background: #fef3c7; color: #92400e; }
.stt-badge--done { background: #d1fae5; color: #065f46; }
.stt-badge--pending { background: #fef3c7; color: #92400e; }
.stt-badge--processing, .stt-badge--partial { background: #dbeafe; color: #1d4ed8; }
.stt-badge--error { background: #fee2e2; color: #991b1b; }

/* 2컬럼 레이아웃 */
.stt-detail-body { display: flex; gap: 24px; flex: 1; min-height: 0; }
.stt-detail-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stt-detail-right { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.stt-detail-right h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }

/* 음성 플레이어 */
.stt-player { background: #f9fafb; border-radius: 8px; padding: 16px; }
.stt-player h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }

/* 분류 카드 */
.stt-classify-card { background: #f9fafb; border-radius: 8px; padding: 16px; }
.stt-classify-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.stt-classify-type { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stt-classify-tag {
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
  background: #e5e7eb; color: #374151;
}
.stt-classify-tag--order { background: #d1fae5; color: #065f46; }
.stt-classify-tag--claim { background: #fee2e2; color: #991b1b; }
.stt-classify-tag--question { background: #fef3c7; color: #92400e; }
.stt-classify-tag--sales { background: #dbeafe; color: #1d4ed8; }
.stt-classify-confidence { font-size: 12px; color: #6b7280; }
.stt-classify-summary { font-size: 13px; color: #374151; margin: 0; line-height: 1.5; }

/* 액션 바 */
.stt-action-bar { background: #f9fafb; border-radius: 8px; padding: 16px; }
.stt-action-bar h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.stt-action-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.stt-action-item:last-child { border-bottom: none; }
.stt-action-type { font-size: 13px; font-weight: 500; flex: 1; }
.stt-action-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.stt-action-status--suggested { background: #fef3c7; color: #92400e; }
.stt-action-status--approved { background: #d1fae5; color: #065f46; }
.stt-action-status--skipped { background: #e5e7eb; color: #6b7280; }
.stt-action-buttons { display: flex; gap: 4px; }

/* 화자분리 대화 */
.stt-conversation-card { background: #fff; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.stt-conversation { flex: 1; overflow-y: auto; padding-right: 8px; }
.stt-bubble {
  padding: 10px 14px; border-left: 3px solid transparent;
  margin-bottom: 4px; transition: background 0.15s;
}
.stt-bubble--staff { border-left-color: #2563eb; }
.stt-bubble--partner { border-left-color: #16a34a; }
.stt-bubble.active { background: #f1f5f9; }
.stt-bubble-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stt-bubble-speaker { font-size: 13px; font-weight: 600; color: #111827; }
.stt-bubble--staff .stt-bubble-speaker { color: #2563eb; }
.stt-bubble--partner .stt-bubble-speaker { color: #16a34a; }
.stt-bubble-time { font-size: 12px; color: #9ca3af; }
.stt-bubble-text { font-size: 14px; line-height: 1.6; color: #374151; }
.stt-empty { font-size: 14px; color: #9ca3af; text-align: center; padding: 40px 0; }
