      currentDayIndex++;
                renderDailyForecast();
            }
        }

        function flipWidget() {
            const widget = document.querySelector('.widget');
            const isFlipped = widget.getAttribute('data-flipped') === 'true';
            const popup = document.querySelector('.weather-details-popup');
            
            popup.classList.remove('show');
            
            widget.setAttribute('data-flipped', (!isFlipped).toString());
            widget.style.transf