/* SweetAlert2 Customization pour SANLAF */

/* Popup principal */
.sanlaf-popup {
  border-radius: 15px !important;
  box-shadow: 0 25px 50px rgba(42, 69, 143, 0.2) !important;
  border: 1px solid rgba(42, 69, 143, 0.1) !important;
}

.sanlaf-title {
  color: #2a458f !important;
  font-family: "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
}

.sanlaf-content {
  color: #4a5568 !important;
  font-family: "Segoe UI", sans-serif !important;
  line-height: 1.6 !important;
}

/* Boutons personnalisés */
.sanlaf-confirm-btn {
  background: linear-gradient(135deg, #2a458f, #667eea) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(42, 69, 143, 0.3) !important;
}

.sanlaf-confirm-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(42, 69, 143, 0.4) !important;
}

.sanlaf-cancel-btn {
  background: transparent !important;
  color: #718096 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 25px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.sanlaf-cancel-btn:hover {
  background: #f7fafc !important;
  border-color: #cbd5e0 !important;
  color: #4a5568 !important;
}

.sanlaf-actions {
  gap: 15px !important;
  margin-top: 25px !important;
}

/* Contenu spécialisé */
.welcome-content {
  text-align: center;
  padding: 20px 0;
}

.services-preview {
  display: none;
  justify-content: center;
  gap: 30px;
  margin: 25px 0;
  padding: 5px;
  background: linear-gradient(135deg, #f8f9ff, #e6f3ff);
  border-radius: 10px;
  border: 1px solid rgba(42, 69, 143, 0.1);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #2a458f;
}

.service-item i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #2a458f, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.twofa-content {
  text-align: center;
  padding: 20px 0;
}

.twofa-content strong {
  color: #2a458f;
  font-size: 1.1rem;
  display: block;
  margin: 15px 0;
  padding: 10px;
  background: #f8f9ff;
  border-radius: 8px;
}

.code-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  color: #e17055;
  font-size: 0.9rem;
}

.login-success {
  text-align: center;
  padding: 20px 0;
}

.role-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0;
}

.role-admin {
  background: linear-gradient(135deg, #d63031, #e17055);
  color: white;
}

.role-client {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
}

.order-created {
  text-align: center;
  padding: 20px 0;
}

.order-type {
  font-size: 1.2rem;
  color: #2a458f;
  font-weight: 600;
  margin-bottom: 10px;
}

.order-amount {
  font-size: 1.5rem;
  color: #00b894;
  font-weight: bold;
  background: #e6ffe6;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
}

.notification-sent {
  text-align: center;
  padding: 20px 0;
}

.count-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2a458f, #667eea);
  color: white;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channels {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.channels span {
  background: #f8f9ff;
  padding: 8px 15px;
  border-radius: 20px;
  color: #2a458f;
  font-size: 0.9rem;
}

.status-change {
  text-align: center;
  padding: 20px 0;
}

.new-status {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: inline-block;
}

.invalid-code {
  text-align: center;
  padding: 20px 0;
}

.help-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  color: #667eea;
  font-size: 0.9rem;
  background: #f0f4ff;
  padding: 12px;
  border-radius: 8px;
}

.profile-updated {
  text-align: center;
  padding: 20px 0;
}

.profile-updated i {
  font-size: 3rem;
  color: #00b894;
  margin-bottom: 15px;
}

/* Toast personnalisé */
.sanlaf-toast {
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(42, 69, 143, 0.2) !important;
}

.sanlaf-toast .swal2-title {
  color: #2a458f !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #2a458f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Icônes personnalisées */
.swal2-success .swal2-success-ring {
  border-color: #00b894 !important;
}

.swal2-error .swal2-x-mark .swal2-x-mark-line-left,
.swal2-error .swal2-x-mark .swal2-x-mark-line-right {
  background-color: #e17055 !important;
}

.swal2-warning .swal2-warning-triangle {
  border-color: #fdcb6e transparent transparent !important;
}

.swal2-info .swal2-info-ring {
  border-color: #667eea !important;
}

/* Responsive */
@media (max-width: 768px) {
  .sanlaf-popup {
    margin: 10px !important;
    max-width: calc(100% - 20px) !important;
  }

  .services-preview {
    flex-direction: column;
    gap: 15px;
  }

  .channels {
    flex-direction: column;
    gap: 10px;
  }

  .count-badge {
    font-size: 1.2rem;
    min-width: 50px;
    height: 50px;
  }
}

/* Animation d'entrée */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
}

/* Progress bar personnalisée */
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #2a458f, #667eea) !important;
}

/* Footer personnalisé */
.swal2-footer {
  color: #718096 !important;
  font-size: 0.8rem !important;
}

.swal2-footer a {
  color: #2a458f !important;
  text-decoration: none !important;
}

.swal2-footer a:hover {
  text-decoration: underline !important;
}

/* Styles pour les nouveaux popups de vérification */
.verification-notice {
  background: linear-gradient(135deg, #f8f9ff, #e6f3ff);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  border: 2px solid rgba(42, 69, 143, 0.1);
  position: relative;
  overflow: hidden;
}

.verification-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a458f, #667eea, #00b894);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.verification-icon {
  text-align: center;
  margin-bottom: 20px;
}

.verification-icon i {
  font-size: 3rem;
  background: linear-gradient(135deg, #2a458f, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.verification-notice h3 {
  color: #2a458f;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 15px 0;
  text-align: center;
}

.email-display {
  background: white;
  border: 2px solid #2a458f;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  font-family: "Courier New", monospace;
  font-weight: 600;
  color: #2a458f;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(42, 69, 143, 0.1);
  position: relative;
  overflow: hidden;
}

.email-display::before {
  content: "📧";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.verification-steps {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(42, 69, 143, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.step:hover {
  transform: translateX(5px);
  border-left-color: #2a458f;
  box-shadow: 0 4px 20px rgba(42, 69, 143, 0.1);
}

.step-number {
  background: linear-gradient(135deg, #2a458f, #667eea);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step span:last-child {
  color: #4a5568;
  font-weight: 500;
  line-height: 1.4;
}

.warning-box {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #f39c12;
  border-radius: 12px;
  padding: 10px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.warning-box i {
  color: #f39c12;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-box span {
  color: #856404;
  font-weight: 500;
  line-height: 1.5;
}

.verification-required {
  text-align: center;
  padding: 25px 0;
}

.verification-required .verification-icon i {
  color: #f39c12;
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.verification-help {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid #f39c12;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: #4a5568;
  font-size: 0.95rem;
}

.help-item i {
  color: #f39c12;
  width: 20px;
  text-align: center;
}

.verified-ready {
  text-align: center;
  padding: 25px 0;
}

.success-icon {
  margin-bottom: 20px;
}

.success-icon i {
  color: #00b894;
  font-size: 4rem;
  animation: success-bounce 0.6s ease-out;
}

@keyframes success-bounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.next-step {
  background: linear-gradient(135deg, #e6ffe6, #d4edda);
  border: 2px solid #00b894;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.next-step h4 {
  color: #00b894;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-step h4::before {
  content: "🚀";
  font-size: 1.1rem;
}

.next-step p {
  color: #155724;
  line-height: 1.5;
  margin: 0;
}

.security-info {
  background: #f0f4ff;
  border: 1px solid #667eea;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #2a458f;
  font-size: 0.9rem;
  font-weight: 500;
}

.security-info i {
  color: #667eea;
  font-size: 1.1rem;
}

/* Améliorations des services preview pour les nouveaux popups */
.services-preview p {
  color: #667eea;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Responsive pour les nouveaux éléments */
@media (max-width: 768px) {
  .verification-notice {
    padding: 20px 15px;
    margin: 15px 0;
  }

  .verification-steps {
    gap: 12px;
  }

  .step {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .step:hover {
    transform: none;
  }

  .email-display {
    font-size: 1rem;
    padding: 12px;
    word-break: break-all;
  }

  .warning-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .next-step {
    padding: 15px;
    text-align: center;
  }

  .verification-icon i {
    font-size: 2.5rem;
  }

  .success-icon i {
    font-size: 3rem;
  }
}

/* Animation pour les éléments interactifs */
.step,
.warning-box,
.next-step,
.security-info {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover,
.next-step:hover,
.security-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 69, 143, 0.15);
}

/* Amélioration de l'accessibilité */
.verification-notice,
.verification-required,
.verified-ready {
  outline: none;
}

.verification-notice:focus-within,
.verification-required:focus-within,
.verified-ready:focus-within {
  box-shadow: 0 0 0 3px rgba(42, 69, 143, 0.2);
}
