/* Custom Toast Notifications Styles */
.toast-container {
    z-index: 9999 !important;
}

.toast.colored-toast {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast.colored-toast .toast-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.colored-toast .toast-body {
    color: #fff;
}

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

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

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

/* Info Toast */
.toast.bg-info {
    background-color: #0dcaf0 !important;
}

/* Primary Toast */
.toast.bg-primary {
    background-color: #0d6efd !important;
}

/* Ensure close button is visible on colored backgrounds */
.toast .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Toast animation */
.toast.showing {
    opacity: 1;
    animation: slideInRight 0.3s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

@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;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .toast-container {
        width: 100%;
        padding: 0.5rem !important;
    }

    .toast {
        width: 100%;
        max-width: 100%;
    }
}
