/* BW Toast Notification Styles */
/* Auto-generated by BW.Framework.WebApp ToastContainerTagHelper */
/* This file can be customized - it will never be overwritten */

/* Container positioning */
.bw-toast-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

/* Position variants */
.bw-toast-top-left { top: 20px; left: 20px; }
.bw-toast-top-center { top: 20px; left: 50%; transform: translateX(-50%); }
.bw-toast-top-right { top: 20px; right: 20px; }
.bw-toast-bottom-left { bottom: 20px; left: 20px; }
.bw-toast-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.bw-toast-bottom-right { bottom: 20px; right: 20px; }

/* Individual toast */
.bw-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 500px;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
}

/* Toast types - matching Alert colors */
.bw-toast-info { background-color: #cff4fc; border-color: #b6effb; color: #055160; }
.bw-toast-success { background-color: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.bw-toast-warning { background-color: #fff3cd; border-color: #ffecb5; color: #664d03; }
.bw-toast-error { background-color: #f8d7da; border-color: #f5c2c7; color: #842029; }

/* Toast icon */
.bw-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bw-toast-info .bw-toast-icon { color: #055160; }
.bw-toast-success .bw-toast-icon { color: #0f5132; }
.bw-toast-warning .bw-toast-icon { color: #664d03; }
.bw-toast-error .bw-toast-icon { color: #842029; }

/* Toast content */
.bw-toast-content {
    flex-grow: 1;
}

/* Close button */
.bw-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.bw-toast-close:hover {
    color: #212529;
}

/* Animations */
.bw-toast-slide-in {
    animation: slideIn 0.3s ease-out;
}

.bw-toast-slide-out {
    animation: slideOut 0.3s ease-in;
}

.bw-toast-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.bw-toast-fade-out {
    animation: fadeOut 0.3s ease-in;
}

.bw-toast-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.bw-toast-scale-out {
    animation: scaleOut 0.3s ease-in;
}

/* Keyframes */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .bw-toast {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
}
