/* Toast Notifications Styles */

.toast-container {
    max-width: 400px;
}

.toast {
    min-width: 320px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.toast-header .toast-icon {
    font-weight: bold;
}

.toast-header .btn-close-white {
    filter: brightness(0) invert(1);
}

.toast-body {
    padding: 0.75rem;
    font-size: 0.875rem;
}

.toast-body .message {
    margin-bottom: 0.25rem;
}

.toast-body .detail {
    font-size: 0.8rem;
}

.toast-body .actions {
    display: flex;
    gap: 0.5rem;
}

/* Severity-specific styles */
.toast.border-info {
    border-left: 4px solid #0dcaf0;
}

.toast.border-success {
    border-left: 4px solid #198754;
}

.toast.border-warning {
    border-left: 4px solid #ffc107;
}

.toast.border-danger {
    border-left: 4px solid #dc3545;
}

.toast.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Critical notifications pulse effect */
.toast.border-danger.bg-danger-subtle {
    animation: slideIn 0.3s ease-out, pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6);
    }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .toast-container {
        max-width: 100%;
        left: 0;
        right: 0;
        padding: 0.5rem;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}
