/* Custom styles to use the Inter font */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

/* Simple animation for elements fading in */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for horizontal forecast */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Style for the active unit toggle */
.unit-toggle-active {
    font-weight: 700;
}

/* Raindrop styles */
.raindrop {
    position: relative;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    overflow: hidden;
    border: 3px solid #3b82f6;
    /* blue-500 */
    margin: 10px 0px 0px 0px;
    /* Added margin for better spacing */
}

.raindrop-fill {
    position: absolute;
    bottom: -20%;
    left: -50%;
    /* Shift left to center the wide element */
    width: 200%;
    /* Make it wide enough to cover the parent after rotation */
    background-color: #3b82f6;
    /* blue-500 */
    transition: height 0.5s ease-in-out;
    transform: rotate(-45deg);
    /* Counter-rotate to make the fill level horizontal */
    transform-origin: bottom center;
    /* Rotate around the bottom center point */
    clip-path: url(#wavy-clip);
}

/* Sunrise/Sunset Arc */
.sun-path {
    position: relative;
    height: 80px;
    width: 160px;
    margin: 1rem auto 0;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    border: 2px dashed #9ca3af;
    /* gray-400 */
    border-bottom: 0;
}

.sun-icon {
    position: absolute;
    bottom: 78px;
    /* Position relative to the path's center */
    left: 50%;
    transform-origin: 0 80px;
    /* Rotate around the center of the arc's circle */
    color: #f59e0b;
    /* amber-500 */
}

/* --- Light Mode Styles --- */
.mobile-content.light {
    background-color: #e0f2fe;
    /* sky-100 */
    color: #1f2937;
    /* gray-800 */
}

.mobile-content.light .widget {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    /* gray-200 */
}

.mobile-content.light .unit-toggle-active {
    color: #111827;
}

/* gray-900 */
.mobile-content.light .text-gray-400 {
    color: #6b7280;
}

/* gray-500 */
.mobile-content.light .text-blue-300 {
    color: #3b82f6;
}

/* blue-500 */
.mobile-content.light .sun-path {
    border-color: #9ca3af;
}

/* gray-400 */

/* --- Dark Mode Styles --- */
.mobile-content.dark {
    background-color: #111827;
    /* gray-900 */
    color: #ffffff;
}

.mobile-content.dark .widget {
    background-color: #1f2937;
    /* gray-800 */
}

.mobile-content.dark .sun-path {
    border-color: #4b5563;
}

/* gray-600 */