/* =========================================================================
   SURVELLO UNIFIED MODERN ALERT & CONFIRMATION MODAL POPUP
   ========================================================================= */

.sm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 26, 19, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 18px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s ease;
}

.sm-overlay.sm-open {
  opacity: 1;
  visibility: visible;
}

.sm-card {
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 440px;
  padding: 30px 26px 24px 26px;
  box-sizing: border-box;
  box-shadow: 0 25px 60px -12px rgba(6, 26, 19, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-overlay.sm-open .sm-card {
  transform: scale(1) translateY(0);
}

/* Icon Container */
.sm-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sm-overlay.sm-open .sm-icon-wrap {
  transform: scale(1.05);
}

/* Icon Themes */
.sm-type-success .sm-icon-wrap {
  background: #DDF6EA;
  color: #159A63;
  box-shadow: 0 0 0 8px rgba(43, 222, 154, 0.15);
}

.sm-type-error .sm-icon-wrap {
  background: #FEE2E2;
  color: #DC2626;
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.15);
}

.sm-type-warning .sm-icon-wrap,
.sm-type-confirm .sm-icon-wrap {
  background: #FEF3C7;
  color: #D97706;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.15);
}

.sm-type-info .sm-icon-wrap {
  background: #DBEAFE;
  color: #2563EB;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15);
}

/* Title & Body */
.sm-title {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0E2A20;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sm-message {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 24px 0;
  word-break: break-word;
}

/* Action Buttons */
.sm-btn-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sm-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex: 1;
  text-decoration: none;
}

.sm-btn-confirm {
  background: #0B3D2E;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(11, 61, 46, 0.25);
}

.sm-btn-confirm:hover {
  background: #062018;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 61, 46, 0.35);
}

.sm-btn-danger {
  background: #DC2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.sm-btn-danger:hover {
  background: #B91C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.sm-btn-cancel {
  background: #F1F5F9;
  color: #334155 !important;
  border: 1px solid #E2E8F0;
}

.sm-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F172A !important;
}

@media (max-width: 480px) {
  .sm-card {
    padding: 24px 20px 20px 20px;
    border-radius: 18px;
  }
  .sm-title {
    font-size: 17px;
  }
  .sm-message {
    font-size: 13px;
  }
  .sm-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
