/* Toast Container Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

#toast-template {
    display: none;
}

/* Toast Animation */
.toast {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast:not(.show) {
        opacity: 0;
        transform: translateX(100%);
    }

/* Toast Type Styles */
.toast-success {
    border-left: 4px solid #198754;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #0dcaf0;
}

/* Toast Header Colors */
.toast-success .toast-header {
    background-color: rgba(25, 135, 84, 0.9);
    color: #fff;
}

.toast-error .toast-header {
    background-color: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.toast-warning .toast-header {
    background-color: rgba(255, 193, 7, 1);
    color: #fff;
}

.toast-info .toast-header {
    background-color: rgba(13, 202, 240, 0.9);
    color: #fff;
}

/* Make title & icon inherit white */
.toast-header .toast-title,
.toast-header .toast-icon {
    color: inherit;
}

/* Make Bootstrap close button white */
.toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Toast Icons */
.toast-icon {
    margin-right: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
