/**
 * Site-wide SweetAlert2 theme — rounded card, soft-tinted icon circle
 * (colored per alert type), pill-shaped buttons, and a divider above the
 * action row. Paired with assets/js/shared/swal-theme.js, which maps
 * these classes onto every Swal.fire() call via a Swal.mixin() default,
 * so no individual call site needs to change.
 */

.tswal-popup {
  border-radius: 24px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.tswal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-top: 0.5rem;
}

.tswal-text {
  color: #6b7280;
  font-size: 0.95rem;
}

.tswal-popup .swal2-timer-progress-bar {
  background: #3bb77e;
}

/* ---------------------------------------------------------- icon circle */

.tswal-icon.swal2-icon {
  border: none;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.5rem auto 0.75rem;
  background: transparent;
}

.tswal-icon.swal2-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.12;
}

/* Small scattered dots around the circle — decorative, colored the same as the icon. */
.tswal-icon.swal2-icon::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background-image:
    radial-gradient(currentColor 2.5px, transparent 2.5px),
    radial-gradient(currentColor 2px, transparent 2px),
    radial-gradient(currentColor 2px, transparent 2px),
    radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-position:
    2px 8px,
    100% 22px,
    10px 100%,
    100% 92%;
  opacity: 0.55;
}

.tswal-icon.swal2-success {
  color: #3bb77e;
}
.tswal-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #3bb77e;
}
.tswal-icon.swal2-success .swal2-success-ring {
  border: none;
}

.tswal-icon.swal2-error {
  color: #ff3b30;
}
.tswal-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #ff3b30;
}

.tswal-icon.swal2-warning {
  color: #f59f00;
}
.tswal-icon.swal2-warning .swal2-icon-content {
  color: #f59f00;
}

.tswal-icon.swal2-question {
  color: #3b82f6;
}
.tswal-icon.swal2-question .swal2-icon-content {
  color: #3b82f6;
}

.tswal-icon.swal2-info {
  color: #3b82f6;
}
.tswal-icon.swal2-info .swal2-icon-content {
  color: #3b82f6;
}

/* ------------------------------------------------------------- actions */

.tswal-actions {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  gap: 0.75rem;
}

.tswal-btn {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tswal-btn:hover {
  opacity: 0.9;
}

.tswal-btn:active {
  transform: scale(0.98);
}

.tswal-btn-confirm {
  background: #3bb77e;
  color: #fff;
}

.tswal-btn-cancel {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
}

.tswal-close {
  color: #9ca3af;
}
