/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  min-width: 300px;
  max-width: 400px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification.success {
  border-left: 5px solid #28a745;
}

.toast-notification.error {
  border-left: 5px solid #dc3545;
}

.toast-notification.info {
  border-left: 5px solid #17a2b8;
}

.toast-notification.warning {
  border-left: 5px solid #ffc107;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
}

.toast-content i {
  font-size: 1.5rem;
  margin-right: 15px;
}

.toast-notification.success i {
  color: #28a745;
}

.toast-notification.error i {
  color: #dc3545;
}

.toast-notification.info i {
  color: #17a2b8;
}

.toast-notification.warning i {
  color: #ffc107;
}

.toast-content span {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.toast-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Progress bar for success notifications */
.toast-notification.success .toast-progress {
  height: 4px;
  background-color: #e9ecef;
  position: relative;
}

.toast-notification.success .toast-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #28a745;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .toast-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
    min-width: auto;
    max-width: none;
  }
}
