/* Toaster Notification Styles */
#toaster-container {
    max-width: 350px;
    min-width: 300px;
}

.toast {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-body {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.toast .btn-close {
    padding: 8px;
    margin: 0;
}

.toast .btn-close:focus {
    box-shadow: none;
}

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

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

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

.toast.bg-warning .btn-close {
    filter: invert(1) grayscale(100%) brightness(0);
}

/* Info toast */
.toast.bg-primary {
    background-color: #007bff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #toaster-container {
        right: 10px !important;
        left: 10px !important;
        max-width: none;
        min-width: auto;
    }

    .toast {
        margin-bottom: 8px;
    }

    .toast-body {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Animation for stacking toasts */
.toast:not(:last-child) {
    margin-bottom: 8px;
}

/* Hover effects */
.toast:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.toast:hover.show {
    transform: translateX(0) scale(1.02);
}

/* Icon styling */
.toast-body i {
    font-size: 16px;
    flex-shrink: 0;
}