/* Toast Notifications Styles */

/* Toast Container */
.toast-container {
    z-index: 1090;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

/* Toast Types */
.toast-success {
    background-color: #28a745;
}

.toast-error,
.toast-danger {
    background-color: #dc3545;
}

html body .toast-warning {
    background-color: #ffc107;
    color: #212529;
}

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

.toast-info {
    background-color: #17a2b8;
}

/* Toast Body */
.toast-body {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.toast-body i {
    font-size: 1.25rem;
}

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

/* Mobile Responsive */
@media (max-width: 576px) {
    html body .toast-container {
        left: 0;
        right: 0;
        padding: 1rem;
    }

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

/* Accessibility */
.toast:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .toast {
        color: #fff;
    }

    html body .toast-warning {
        background-color: #856404;
        color: #fff;
    }

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

/* Bootstrap Override für bessere Marken-Integration */
.toast {
    border-radius: 8px;
    border: none;
}

.toast .btn-close {
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Alte Alert-Styles verstecken (Fallback) */
.messages-container {
    display: none;
}
