/* Toast Notification System */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
}

.toast-notification {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid #6c757d;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.toast-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

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

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

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

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

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.toast-message {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #333;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.1);
  animation: progressBar 3s linear forwards;
}

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

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

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

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

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.toast-notification.hiding {
  animation: slideOutRight 0.3s ease-out forwards;
}

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

