/**
 * Estilos para el sistema de notificaciones toast
 * 
 * Este archivo contiene los estilos para las notificaciones toast
 * que se utilizan en toda la aplicación.
 */

/* Contenedor de notificaciones */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

/* Notificación individual */
.toast-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2d2d2d;
    color: #f8f9fa;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #17a2b8; /* Color por defecto (info) */
    pointer-events: auto;
}

/* Estados de visibilidad */
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Tipos de notificación */
.toast-notification.success {
    border-left-color: #28a745;
}

.toast-notification.error {
    border-left-color: #dc3545;
}

.toast-notification.warning {
    border-left-color: #ffc107;
    color: #212529;
}

.toast-notification.info {
    border-left-color: #17a2b8;
}

/* Contenido del toast */
.toast-notification .toast-content {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 10px;
}

/* Botón de cierre */
.toast-notification .toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0 0 15px;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

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

/* Íconos */
.toast-notification i {
    margin-right: 10px;
    font-size: 1.1rem;
    min-width: 1.1rem;
    text-align: center;
}

/* Colores de íconos según tipo */
.toast-notification.success i {
    color: #28a745;
}

.toast-notification.error i {
    color: #dc3545;
}

.toast-notification.warning i {
    color: #ffc107;
}

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

/* Responsividad */
@media (max-width: 576px) {
    #toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
        width: auto;
    }
    
    .toast-notification {
        width: 100%;
        max-width: 100%;
    }
}
