/* Modern Alert Styles */

/* Alert Container */
.modern-alert-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 100%;
  max-width: 500px;
  pointer-events: none;
}

/* Individual Alert */
.modern-alert {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  animation: slide-in 0.3s forwards;
}

/* Alert Types */
.modern-alert.alert-success {
  border-left: 5px solid #28a745;
}

.modern-alert.alert-danger {
  border-left: 5px solid #dc3545;
}

.modern-alert.alert-warning {
  border-left: 5px solid #ffc107;
}

.modern-alert.alert-info {
  border-left: 5px solid #17a2b8;
}

/* Alert Content */
.modern-alert-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
}

.modern-alert-icon {
  margin-right: 15px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-alert.alert-success .modern-alert-icon {
  color: #28a745;
}

.modern-alert.alert-danger .modern-alert-icon {
  color: #dc3545;
}

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

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

.modern-alert-message {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
}

.modern-alert-message a {
  font-weight: 600;
  text-decoration: none;
}

.modern-alert-close {
  background: transparent;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
  padding: 0;
  transition: color 0.2s;
}

.modern-alert-close:hover {
  color: #343a40;
}

/* Animation */
@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.modern-alert.fade-out {
  animation: slide-out 0.3s forwards;
}
