.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-modal {
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-icon {
  font-size: 24px;
  animation: bounce 0.6s ease-out;
  margin-bottom: 12px;
}

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

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.modal-message {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn-cancel {
  background: #e5e7eb;
  color: #374151;
}

.modal-btn-cancel:hover {
  background: #d1d5db;
  transform: translateY(-2px);
}

/* Modal type variations */
.custom-modal-error .modal-title {
  color: #dc2626;
}

.custom-modal-error .modal-btn-confirm {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.custom-modal-error .modal-btn-confirm:hover {
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.custom-modal-success .modal-title .modal-icon {
  color: #10b981;
}

.custom-modal-success .modal-btn-confirm {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.custom-modal-success .modal-btn-confirm:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.custom-modal-warning .modal-title {
  color: #f59e0b;
}

.custom-modal-info .modal-title {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 640px) {
  .custom-modal {
    padding: 30px 20px;
    max-width: 90%;
  }

  .modal-icon {
    font-size: 40px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-buttons {
    flex-direction: column;
  }
}
