/* ========================================================================== */
/* Confirm Dialog                                                             */
/* ========================================================================== */

.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: confirm-backdrop-in 0.15s ease-out;
}

.confirm-dialog-panel {
  background: var(--xbot-bg-secondary);
  border: 1px solid var(--xbot-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: confirm-panel-in 0.2s ease-out;
}

.confirm-dialog-message {
  font-size: 14px;
  color: var(--xbot-text-primary);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-dialog-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.confirm-dialog-btn-cancel {
  background: var(--xbot-bg-elevated);
  color: var(--xbot-text-secondary);
}
.confirm-dialog-btn-cancel:hover {
  background: var(--xbot-border-light);
  color: var(--xbot-text-primary);
}

.confirm-dialog-btn-confirm {
  background: var(--xbot-color-error);
  color: white;
}
.confirm-dialog-btn-confirm:hover {
  background: #b91c1c;
}

@keyframes confirm-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes confirm-panel-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- Light theme overrides ---- */
[data-theme="light"] .confirm-dialog-panel {
  background: #ffffff;
  border-color: #d6d3d1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .confirm-dialog-message {
  color: #1c1917;
}

[data-theme="light"] .confirm-dialog-btn-cancel {
  background: #e2e8f0;
  color: #475569;
}
[data-theme="light"] .confirm-dialog-btn-cancel:hover {
  background: #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .confirm-dialog-btn-confirm {
  background: var(--xbot-color-error);
  color: white;
}
