/* Custom Toastr Styling - Minimal Design */

/* Override default toastr styles */
#toast-container {
  z-index: 9999;
}

#toast-container > div {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
  margin: 8px;
  min-width: 300px;
  max-width: 400px;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Success toast styling */
#toast-container > .toast-success {
  background: #dcfce7 !important;
  color: #166534;
  border-left: 4px solid #22c55e;
  background-image: none !important;
}

/* Error toast styling */
#toast-container > .toast-error {
  background: #fef2f2 !important;
  color: #991b1b;
  border-left: 4px solid #ef4444;
  background-image: none !important;
}

/* Warning toast styling */
#toast-container > .toast-warning {
  background: #fef3c7 !important;
  color: #92400e;
  border-left: 4px solid #f59e0b;
  background-image: none !important;
}

/* Info toast styling */
#toast-container > .toast-info {
  background: #dbeafe !important;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
  background-image: none !important;
}

/* Close button styling */
#toast-container .toast-close-button {
  color: #64748b;
  font-size: 16px;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  line-height: 1;
}

#toast-container .toast-close-button:hover {
  opacity: 1;
  color: #374151;
}

/* Progress bar styling */
#toast-container .toast-progress {
  background: rgba(255, 255, 255, 0.3);
  height: 3px;
}

/* Animation improvements */
#toast-container > div.ng-enter {
  opacity: 0;
  transform: translateY(-20px);
}

#toast-container > div.ng-enter.ng-enter-active {
  opacity: 1;
  transform: translateY(0);
}

#toast-container > div.ng-leave {
  opacity: 1;
  transform: translateY(0);
}

#toast-container > div.ng-leave.ng-leave-active {
  opacity: 0;
  transform: translateY(-20px);
}

/* Responsive design */
@media (max-width: 768px) {
  #toast-container > div {
    min-width: 280px;
    max-width: calc(100vw - 32px);
    margin: 4px;
    padding: 12px 16px;
    font-size: 13px;
  }
  
  #toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }
}

/* Full-width toast styling (for base.html) */
.toast-top-full-width #toast-container {
  top: 0;
  right: 0;
  width: 100%;
}

.toast-top-full-width #toast-container > div {
  width: 100%;
  max-width: none;
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Center text for full-width toasts */
.text-center #toast-container > div {
  text-align: center;
} 