/* Dialog Modal - Alert & Confirmation Styles */
.dialog-modal {
  max-width: 480px;
}

.dialog__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: var(--font-bold);
  margin: 0 auto var(--spacing-md);
  animation: iconPopIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes iconPopIn {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.dialog__icon--success {
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: white;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dialog__icon--error {
  background: linear-gradient(135deg, var(--color-error) 0%, #DC2626 100%);
  color: white;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dialog-modal--success .modal__header,
.dialog-modal--error .modal__header {
  flex-direction: column;
  text-align: center;
  padding-bottom: var(--spacing-lg);
}

.dialog-modal--success .modal__title,
.dialog-modal--error .modal__title {
  margin-top: var(--spacing-sm);
}

.dialog__message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
  padding: var(--spacing-md) 0;
}

/* Danger button variant */
.btn--danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #DC2626 100%);
  color: white;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--danger:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Dialog footer spacing */
.dialog-modal .modal__footer {
  gap: var(--spacing-sm);
}

.dialog-modal .modal__footer .btn:not(.btn--full) {
  flex: 1;
}

@media (max-width: 768px) {
  .dialog-modal {
    max-width: 100%;
    margin: var(--spacing-md);
  }

  .dialog__message {
    font-size: 0.9375rem;
  }
}
