/* Custom Alert Styles */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  min-width: 300px;
  animation: slideInRight 0.5s ease forwards;
}

/* Alert Container */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

/* Alert Base Styles */
.alert-modern {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transform: translateX(120%);
  animation: slideInRight 0.5s ease forwards;
  border-left: 5px solid;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alert Types */
.alert-success {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f7e6 100%);
  border-left-color: #10b981;
}

.alert-success .alert-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.alert-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left-color: #3b82f6;
}

.alert-info .alert-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
}

.alert-warning .alert-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.alert-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left-color: #ef4444;
}

.alert-error .alert-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Alert Icon */
.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Alert Content */
.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #1e293b;
}

.alert-message {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.alert-details {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert Close Button */
.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #94a3b8;
  padding: 0 5px;
  transition: all 0.3s ease;
  line-height: 1;
}

.alert-close:hover {
  color: #475569;
  transform: rotate(90deg);
}

/* Alert Progress Bar */
.alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: 0 0 0 16px;
  animation: progressShrink 5s linear forwards;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes progressShrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Alert Stack - Multiple Alerts */
.alert-container .alert-modern {
  margin-bottom: 10px;
  position: relative;
}

.alert-container .alert-modern:last-child {
  margin-bottom: 0;
}

/* Hover Effects */
.alert-modern:hover {
  transform: translateX(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .alert-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .alert-modern {
    padding: 15px;
  }

  .alert-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Toast Style Alert */
.alert-toast {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  border-left-color: #3b82f6;
}

.alert-toast .alert-title,
.alert-toast .alert-message,
.alert-toast .alert-details {
  color: white;
}

.alert-toast .alert-close {
  color: rgba(255, 255, 255, 0.6);
}

.alert-toast .alert-close:hover {
  color: white;
}

/* Floating Alert */
.alert-floating {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 450px;
  width: 90%;
  z-index: 10000;
  background: white;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.alert-floating .alert-icon {
  width: 70px;
  height: 70px;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.alert-floating .alert-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.alert-floating .alert-message {
  font-size: 1rem;
  margin-bottom: 25px;
}

.alert-floating .alert-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.alert-floating .alert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}
