/* ai-config.css - Estilos da Governança de Modelos de IA e Roteamento */

.ai-config-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-config-nav-pill:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-config-nav-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.ai-config-nav-pill__icon {
  font-size: 13px;
  line-height: 1;
}

.ai-config-nav-pill__label {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Modal Backdrop */
.ai-config-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: aiModalFadeIn 0.18s ease-out;
}

@keyframes aiModalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ai-config-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-config-modal__header {
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.ai-config-close-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.ai-config-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.ai-config-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-config-section {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.ai-config-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ai-config-label-heading {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .ai-mode-cards {
    grid-template-columns: 1fr;
  }
}

.ai-mode-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-mode-card.is-selected {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ai-mode-card input[type="radio"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #2563eb;
}

.ai-mode-card__content {
  flex: 1;
}

.ai-mode-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ai-mode-card__header strong {
  font-size: 12.5px;
  color: #0f172a;
}

.ai-mode-card__badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ai-mode-card p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.ai-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-checkbox-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-checkbox-item:hover {
  background: #f8fafc;
}

.ai-checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #10b981;
}

.ai-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ai-checkbox-text strong {
  font-size: 12.5px;
  color: #1e293b;
}

.ai-checkbox-text span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.ai-thinking-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.ai-thinking-pill {
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  background: #ffffff;
}

.ai-thinking-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.ai-thinking-pill input[type="radio"] {
  display: none;
}

.ai-slider-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
}

.ai-slider-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-slider-row__label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.ai-slider-row__val {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-range-input {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
}

.ai-slider-row__scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.ai-config-modal__footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ai-btn-primary {
  background: #1b2f7a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-btn-primary:hover {
  background: #2542a6;
}

.ai-btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Chat Prompt Confirmation Card for Astra Routing */
.astra-confirmation-card {
  margin: 12px 0;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.astra-confirmation-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 6px;
}

.astra-confirmation-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.45;
}

.astra-confirmation-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.astra-confirm-btn {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.astra-confirm-btn:hover {
  background: #b45309;
}

.astra-cancel-btn {
  background: #ffffff;
  color: #78350f;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.astra-cancel-btn:hover {
  background: #fef3c7;
}

