/* css/notifications.css - Sistema de Notificaciones Toast */

/* Contenedor de notificaciones */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* Toast individual */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.3s ease;
    overflow: hidden;
    position: relative;
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

/* Icono del toast */
.toast-icon {
    font-size: 1.4em;
    flex-shrink: 0;
}

/* Contenido del toast */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 0.95em;
}

.toast-message {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Botón de cerrar */
.toast-close {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin-left: 8px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #666;
}

/* Barra de progreso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    animation: toastProgress linear forwards;
}

/* Tipos de toast */
.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.success .toast-progress {
    background: #27ae60;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.error .toast-progress {
    background: #e74c3c;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.warning .toast-progress {
    background: #f39c12;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast.info .toast-progress {
    background: #3498db;
}

/* Animaciones */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 12px 16px;
    }
}
