.custom-alert {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  max-width: 90%;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
}

.custom-alert.show {
  bottom: 30px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: gentlePulse 0.5s ease; /* Only added line */
}

/* Initial state for animation */
.custom-alert {
  transform: translateX(-50%) scale(0.9);
}

/* Pulse animation */
@keyframes gentlePulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.03); }
  100% { transform: translateX(-50%) scale(1); }
}

/* Your existing alert types */
.alert-success {
  background-color: #28a745;
}

.alert-error {
  background-color: #dc3545;
}

.alert-info {
  background-color: #17a2b8;
}

.alert-timeout {
  background-color: #ffc107;
  color: #212529;
}

.alert-network-error {
  background-color: #6f42c1;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

/* Your existing content styles */
.alert-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
}

.alert-warning .alert-icon {
  color: #ffc107;
}

.alert-warning .close-btn {
  color: #ffc107;
}


.alert-message {
  font-size: 15px;
  line-height: 1.4;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  margin-left: 20px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

/* Your existing responsive styles */
@media (max-width: 480px) {
  .custom-alert {
    max-width: 95%;
    padding: 12px 16px;
  }

  .alert-message {
    font-size: 14px;
  }
  
  .alert-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .close-btn {
    font-size: 18px;
    margin-left: 10px;
  }
}