/* Modern Bootstrap Toast Styling for Shamrock Theme */

.toast-container {
  z-index: 11000 !important;
}

.toast {
  min-width: 300px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  font-family: inherit;
}

.toast-body {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-body span:first-child {
  font-size: 1.1rem;
  font-weight: bold;
}

/* Success Toast */
.toast.text-bg-success {
  background-color: #28a745 !important;
  color: white !important;
}

.toast.text-bg-success .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Error Toast */
.toast.text-bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.toast.text-bg-danger .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Warning Toast */
.toast.text-bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.toast.text-bg-warning .btn-close {
  filter: none;
}

/* Info Toast */
.toast.text-bg-info {
  background-color: #17a2b8 !important;
  color: white !important;
}

.toast.text-bg-info .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Animation improvements */
.toast.showing {
  opacity: 1;
  transform: translateX(0);
}

.toast:not(.show) {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .toast-container {
    position: fixed !important;
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Ensure toasts appear above modals and other elements */
.toast-container {
  z-index: 11000 !important;
}

/* Override any conflicting styles */
.toast * {
  box-sizing: border-box;
}