/* Contenedor principal de notificaciones */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 350px;
    max-width: calc(100% - 2rem);
    z-index: 1100;
}

/* Estilo base para los toasts */
.toast {
    width: 100%;
    margin-bottom: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    opacity: 0.95;
}

/* Cuerpo del toast */
.toast-body {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: white;
}

/* Iconos dentro del toast */
.toast-body i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Contenido del mensaje */
.toast-body .toast-content {
    flex-grow: 1;
}

/* Tipos de notificaciones */
.toast.bg-success {
    background-color: #198754 !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
}

.toast.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.toast.bg-warning .toast-body {
    color: #212529 !important;
}

.toast.bg-info {
    background-color: #0dcaf0 !important;
}

/* Asegurar que el texto sea blanco en todos los toasts excepto warning */
.toast:not(.bg-warning) .toast-body {
    color: white !important;
}

/* Estilo específico para el botón de cierre */
.toast .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Animación de entrada */
@keyframes slideInDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 0.95; 
    }
}

/* Aplicar animación */
.toast.show {
    animation: slideInDown 0.3s ease-out;
}

/* Ajustes para móviles */
@media (max-width: 576px) {
    .toast-container {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        width: 100%;
    }
}
