/* ===== MODAL COMPONENT =====
 * Reusable modal styles for error, success, and warning dialogs
 * Requires CSS variables: --navy-light, --text-light, --text-muted,
 *   --border-dark, --navy-lighter, --green, --green-hover, --error, --warning
 */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--navy-light);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  text-align: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-icon--error {
  color: var(--error);
}

.modal-icon--success {
  color: var(--green);
}

.modal-icon--warning {
  color: var(--warning, #f59e0b);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.modal-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-btn--secondary {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-light);
}

.modal-btn--secondary:hover {
  background: var(--navy-lighter);
}

.modal-btn--primary {
  background: var(--green);
  border: none;
  color: white;
  font-weight: 500;
}

.modal-btn--primary:hover {
  background: var(--green-hover);
}
