/**
 * Toast Notification Styles
 * CSS cho hệ thống thông báo toast
 */

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 200px;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.toast-notification.success {
  background-color: #28a745;
  border-left: 3px solid #1e7e34;
}

.toast-notification.error {
  background-color: #dc3545;
  border-left: 3px solid #bd2130;
}

.toast-notification.warning {
  background-color: #ffc107;
  color: #000;
  border-left: 3px solid #e0a800;
}

.toast-notification.info {
  background-color: #17a2b8;
  border-left: 3px solid #138496;
}

.toast-notification i {
  font-size: 16px;
}

.toast-notification span {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 16px;
}

.toast-close:hover {
  opacity: 1;
}

@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;
  }
}

/* Flash message (PHP generated) */
.flash-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 200px;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-message.success {
  background-color: #28a745;
  border-left: 3px solid #1e7e34;
}

.flash-message.error {
  background-color: #dc3545;
  border-left: 3px solid #bd2130;
}

.flash-message.warning {
  background-color: #ffc107;
  color: #000;
  border-left: 3px solid #e0a800;
}

.flash-message.info {
  background-color: #17a2b8;
  border-left: 3px solid #138496;
}

.flash-message i {
  font-size: 16px;
}

