/* Toast container */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 350px;
}

/* Toast styling */
.toast {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  border-left: 4px solid #5730F2;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Toast types */
.toast-notice, .toast-success {
  border-left-color: #10B981;
}

.toast-notice .toast-icon, .toast-success .toast-icon {
  color: #10B981;
}

.toast-alert, .toast-error {
  border-left-color: #EF4444;
}

.toast-alert .toast-icon, .toast-error .toast-icon {
  color: #EF4444;
}

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

.toast-warning .toast-icon {
  color: #F59E0B;
}

.toast-info {
  border-left-color: #3B82F6;
}

.toast-info .toast-icon {
  color: #3B82F6;
}

/* Toast components */
.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
}

.toast-message {
  flex-grow: 1;
  font-size: 0.875rem;
  color: #1F2937;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.75rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

/* Mobile responsiveness */
@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .toast {
    width: 100%;
  }
}
