@use '../../styles/mixins' as *;

// =============================================================================
// ConfirmDialog — in-app modal replacing window.confirm()
// =============================================================================

/// Full-screen overlay that dims the background and blocks interaction.
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

/// Card dialog panel.
.dialog {
  @include surface-card;
  padding: var(--space-xl);
  min-width: 300px;
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
}

/// Dialog title.
.title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  line-height: 1.3;
}

/// Consequence description below the title.
.description {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height);
}

/// Button row — cancel on left, danger confirm on right.
.actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

.cancelButton {
  @include btn-ghost(var(--text-secondary));
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  font-family: var(--font-ui);
}

.confirmButton {
  @include btn-danger;
  font-size: var(--font-size-sm);
}
