/* SweetAlert2 Custom Styles */
:root {
  --swal2-background: #fff;
  --swal2-color: #2d3748;
  --swal2-border: none;
  --swal2-box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  --swal2-border-radius: 1rem;
  --swal2-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Container */
.swal2-popup {
  font-family: var(--swal2-font-family);
  border-radius: var(--swal2-border-radius);
  padding: 2rem;
  direction: rtl;
}

/* Title */
.swal2-title {
  color: var(--swal2-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0;
}

/* Content */
.swal2-html-container {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0;
}

/* Buttons */
.swal2-actions {
  margin-top: 1.5rem;
}

.swal2-styled.swal2-confirm {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.swal2-styled.swal2-confirm:hover {
  background: var(--secondary-color);
}

.swal2-styled.swal2-cancel {
  background: #e2e8f0;
  color: #4a5568;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.swal2-styled.swal2-cancel:hover {
  background: #cbd5e0;
}

/* Icons */
.swal2-icon {
  margin: 1.5rem auto;
}

.swal2-icon.swal2-error {
  border-color: var(--error-color);
}

.swal2-icon.swal2-success {
  border-color: var(--success-color);
}

.swal2-icon.swal2-warning {
  border-color: #ed8936;
}

.swal2-icon.swal2-info {
  border-color: #4299e1;
}

.swal2-icon.swal2-question {
  border-color: #805ad5;
}

/* Close Button */
.swal2-close {
  color: #a0aec0;
  transition: color 0.2s;
}

.swal2-close:hover {
  color: #4a5568;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
  background: var(--primary-color);
}

/* RTL Specific Adjustments */
.swal2-popup.swal2-rtl {
  direction: rtl;
}

.swal2-popup.swal2-rtl .swal2-close {
  left: 0;
  right: auto;
}

/* Custom Animation */
.swal2-show {
  animation: swal2-show 0.3s;
}

.swal2-hide {
  animation: swal2-hide 0.15s forwards;
}

@keyframes swal2-show {
  0% {
    transform: scale(0.7);
  }
  45% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes swal2-hide {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media screen and (max-width: 480px) {
  .swal2-popup {
    padding: 1.5rem;
    width: 90%;
    margin: 0.5rem;
  }
  
  .swal2-title {
    font-size: 1.25rem;
  }
  
  .swal2-html-container {
    font-size: 0.875rem;
  }
  
  .swal2-styled {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}