/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.toast-notification {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.toast-notification:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.toast-notification.success {
  border-left-color: #28a745;
}

.toast-notification.success .toast-icon {
  color: #28a745;
}

.toast-notification.error {
  border-left-color: #dc3545;
}

.toast-notification.error .toast-icon {
  color: #dc3545;
}

.toast-notification.warning {
  border-left-color: #ffc107;
}

.toast-notification.warning .toast-icon {
  color: #ffc107;
}

.toast-notification.info {
  border-left-color: #17a2b8;
}

.toast-notification.info .toast-icon {
  color: #17a2b8;
}

.toast-icon {
  font-size: 20px;
  margin-right: 12px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 14px;
}

.toast-message {
  font-size: 13px;
  color: #666;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  margin-left: 10px;
  line-height: 1;
}

.toast-close:hover {
  color: #333;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-notification.hiding {
  animation: slideOutRight 0.3s ease-out forwards;
}

/* Alert enhancements */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Form validation styles */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

/* Loading spinner overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.loading-overlay.active {
  display: flex;
}

.spinner-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.loading-text {
  margin-top: 15px;
  font-weight: 500;
}
