/* Step Params Table – bảng rõ trên nền tối (ưu tiên đọc được trong chat) */
.step-params-panel {
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #374151;
  max-height: none;
  overflow: visible;
}

/* File card – hiển thị file đã gửi (như khoanh đỏ) */
.step-params-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.step-file-card {
  padding: 0.75rem 1rem;
  background: var(--md-sys-color-surface-container-high, #2d3748);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-file-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.step-file-log {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-file-log i {
  opacity: 0.9;
}

.step-params-content {
  flex: 1;
  min-width: 0;
}

.step-params-panel h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff !important;
}

.step-params-panel .step-params-subtitle {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #d1d5db !important;
}

.step-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.step-params-table th,
.step-params-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.step-params-table th {
  font-weight: 600;
  color: #ffffff !important;
  background: #4b5563;
}

.step-params-table td:first-child {
  color: #f3f4f6 !important;
  font-weight: 500;
}

.step-params-table td input {
  width: 100%;
  max-width: 120px;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.875rem;
  background: #1f2937;
  color: #ffffff;
}

.step-params-table td input::placeholder {
  color: #9ca3af;
}

.step-params-table td input:focus {
  outline: none;
  border-color: #8ab4f8;
}

.step-params-confirm-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: #8ab4f8;
  color: #0d0d0d;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.step-params-confirm-btn:hover {
  opacity: 0.9;
}

.step-params-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step-params-confirm-btn.step-params-confirm-done {
  background: #22c55e;
  color: #ffffff;
  opacity: 1;
  cursor: default;
}

/* Chế độ sáng: bảng sáng, chữ tối */
html.theme-light .step-params-panel {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

html.theme-light .step-file-card {
  background: var(--md-sys-color-surface-container-high, #cbd5e1);
  border-color: #94a3b8;
}

html.theme-light .step-file-name {
  color: #0f172a;
}

html.theme-light .step-file-log {
  color: #475569;
}

html.theme-light .step-params-panel h3,
html.theme-light .step-params-table th,
html.theme-light .step-params-table td {
  color: #0f172a !important;
}

html.theme-light .step-params-panel .step-params-subtitle {
  color: #475569 !important;
}

html.theme-light .step-params-table td:first-child {
  color: #1e293b !important;
}

html.theme-light .step-params-table th {
  background: #cbd5e1;
}

html.theme-light .step-params-table td input {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8;
}

html.theme-light .step-params-confirm-btn {
  background: #2563eb;
  color: #ffffff;
}
