* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    color: #fff;
    scroll-behavior: smooth;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 1s ease;
    z-index: -2;
}

.background.sunny {
    background: linear-gradient(135deg, #FDB99B 0%, #F6D365 50%, #4FACFE 100%);
}

.background.cloudy {
    background: linear-gradient(to top, #757F9A 0%, #D7DDE8 100%);
}

.background.mostly-cloudy {
    background: linear-gradient(to top, #5B7FA6 0%, #A8C0E0 100%);
}

.background.partly-cloudy {
    background: linear-gradient(to top, #4A90D9 0%, #B8D4F1 100%);
}

.background.clear-night {
    background: #000000;
}

.background.cloudy-night {
    background: linear-gradient(135deg, #757F9A 0%, #000000 100%);
}


/* Clouds container */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Individual cloud styling */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Create cloud shape using pseudo-elements */
.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
}

.cloud::before {
    width: 50%;
    height: 80%;
    top: -40%;
    left: 10%;
}

.cloud::after {
    width: 60%;
    height: 70%;
    top: -30%;
    right: 10%;
}

/* Stars container for clear night */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual star styling */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Twinkling animation - sparkle effect */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.2);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.background.stormy {
    background: linear-gradient(135deg, #2C3E50 0%, #4CA1AF 50%, #C4E0E5 100%);
}

/* Animated particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-50vh) translateX(30px) scale(1.2); opacity: 0.6; }
    50% { transform: translateY(-100vh) translateX(-30px) scale(0.8); opacity: 0.3; }
    75% { transform: translateY(-150vh) translateX(20px) scale(1.1); opacity: 0.5; }
}

/* Rain effect */
.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.6));
    animation: fall linear infinite;
}

@keyframes fall {
    to { transform: translateY(100vh); }
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 150px;
}

/* Glass Card */
.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 60px 50px;
    min-width: 600px;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.location {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.location h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.home-icon {
    color: #fff;
    text-decoration: none;
    font-size: 0.8em;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

.home-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(2px 2px 8px rgba(255, 255, 255, 0.4));
}

.home-icon i {
    font-size: 0.8em;
}

.location .date-time {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Weather Icon Section */
.weather-icon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.weather-icon {
    font-size: 150px;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Temperature Display */
.temperature-display {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.temperature {
    font-size: 6em;
    font-weight: 700;
    line-height: 1;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
}

.feels-like {
    font-size: 1.2em;
    opacity: 0.8;
    margin-top: 10px;
}

.weather-description {
    font-size: 1.8em;
    text-transform: capitalize;
    margin-top: 10px;
    font-weight: 300;
}

/* Forecast Time Controls */
.forecast-controls {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.time-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.selected-time {
    font-size: 1.3em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.relative-time {
    font-size: 1em;
    opacity: 0.8;
    font-style: italic;
}

.now-btn {
    background: rgba(79, 172, 254, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.now-btn:hover {
    background: rgba(79, 172, 254, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.slider-container {
    margin: 20px 0;
    position: relative;
}

.slider-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 10px;
    font-weight: 600;
}

.day-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    font-weight: 500;
}

.day-labels span {
    flex: 1;
    text-align: center;
}

.hour-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85em;
    opacity: 0.7;
}

.time-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4FACFE;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
    transition: all 0.2s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.8);
}

.time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4FACFE;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
    transition: all 0.2s ease;
}

.time-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.8);
}

/* Weather Details Grid */
.weather-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: grab;
}

.detail-item:active {
    cursor: grabbing;
}

.detail-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.detail-item.sortable-ghost {
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.2);
}

.detail-item.sortable-drag {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.detail-item i {
    font-size: 2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.detail-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.5em;
    font-weight: 600;
}

/* Refresh Button */
.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.refresh-btn:hover {
    /* transform: rotate(180deg) scale(1.1); */
    font-size: 1.5em;
    background: rgba(255, 255, 255, 0.3);
}

.refresh-btn i {
    font-size: 1.5em;
}

/* Settings Button */
.settings-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.settings-btn:hover {
    font-size: 0.9em;
    /* transform: rotate(90deg) scale(1.1); */
    background: rgba(255, 255, 255, 0.3);
}

.settings-btn i {
    font-size: 2.0em;
}

/* Loading state */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    z-index: 10;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Additional Details Section */
.extra-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    position: relative;
    z-index: 1;
}

.extra-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.extra-detail:hover {
    background: rgba(255, 255, 255, 0.1);
}

.extra-detail i {
    font-size: 1.5em;
    opacity: 0.8;
}

.extra-detail-content {
    flex: 1;
}

.extra-detail-label {
    font-size: 0.8em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.extra-detail-value {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 3px;
}

/* Settings Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.settings-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4FACFE;
}

.checkbox-label {
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: rgba(79, 172, 254, 0.8);
    color: #fff;
}

.btn-primary:hover {
    background: rgba(79, 172, 254, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Custom scrollbar for body */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Scroll Bounce Animations */
@keyframes bounceTop {
    0% { transform: translateY(0); }
    25% { transform: translateY(15px); }
    50% { transform: translateY(-8px); }
    75% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

@keyframes bounceBottom {
    0% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(8px); }
    75% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.container.bounce-top {
    animation: bounceTop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.container.bounce-bottom {
    animation: bounceBottom 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Location Name Display */
.location-name {
    font-size: 1.1em;
    opacity: 0.85;
    margin-bottom: 5px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* Location Button */
.location-btn {
    position: fixed;
    bottom: 190px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.location-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.location-btn i {
    font-size: 1.5em;
}

/* Location Modal */
.location-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    position: relative;
}

.map-placeholder p {
    font-size: 1.3em;
    font-weight: 600;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.map-placeholder .map-instructions {
    font-size: 0.95em;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 10px;
}

/* Location Marker */
.location-marker {
    position: absolute;
    font-size: 2.5em;
    color: #ff4444;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transform: translate(-50%, -100%);
    animation: markerDrop 0.5s ease-out;
}

@keyframes markerDrop {
    0% {
        transform: translate(-50%, -100%) translateY(-50px);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -100%) translateY(5px);
    }
    100% {
        transform: translate(-50%, -100%) translateY(0);
        opacity: 1;
    }
}

/* Coordinates Display */
.coordinates-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.coordinates-display span {
    font-family: 'Courier New', monospace;
}

/* UFO Container */
.ufo-container {
    position: fixed;
    top: 50px;
    left: -150px;
    width: 100px;
    height: 50px;
    z-index: 150;
    pointer-events: none;
}

/* UFO Flying Animation */
@keyframes flyAcross {
    0% {
        left: -150px;
    }
    100% {
        left: 100vw;
    }
}

.ufo-container.flying {
    animation: flyAcross 15s linear forwards;
}

/* UFO Structure */
.ufo {
    position: relative;
    width: 100%;
    height: 100%;
}

/* UFO Dome (top part) */
.ufo-dome {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(150, 200, 255, 0.8) 0%, rgba(100, 150, 220, 0.6) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
}

/* UFO Body (main saucer) */
.ufo-body {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: linear-gradient(to bottom, rgba(180, 180, 180, 0.9) 0%, rgba(120, 120, 120, 0.8) 50%, rgba(80, 80, 80, 0.7) 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(150, 150, 255, 0.7), inset 0 -5px 10px rgba(0, 0, 0, 0.3);
}

/* UFO Bottom Ring */
.ufo-ring {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 8px;
    background: rgba(200, 200, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(150, 200, 255, 0.8);
}

/* UFO Lights */
.ufo-lights {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.ufo-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 100, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
    animation: blinkLight 1s infinite alternate;
}

.ufo-light:nth-child(2) {
    animation-delay: 0.3s;
    background: rgba(100, 255, 100, 0.9);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.ufo-light:nth-child(3) {
    animation-delay: 0.6s;
    background: rgba(255, 100, 100, 0.9);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

@keyframes blinkLight {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Graph Button */
.graph-btn {
    position: fixed;
    bottom: 350px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.graph-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.3);
}

.graph-btn i {
    font-size: 1.5em;
}

/* ============================================
   TOOLTIPS - Fun & Cheeky Button Tooltips
   ============================================ */
/* Base Tooltip Styles */
.tooltip {
    /* Positioning */
    position: absolute;
    right: calc(100% + 12px);  /* 12px gap from button */
    top: 50%;
    transform: translateY(-50%);

    /* Sizing */
    width: max-content;
    max-width: 180px;
    min-width: 150px;
    padding: 12px 16px;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Typography */
    font-family: 'Poppins', sans-serif;
    font-size: 0.7em;
    font-weight: 400;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;

    /* Initial hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Transition for fade */
    transition: opacity 0.2s ease, visibility 0.2s ease;

    /* Layering */
    z-index: 101;
}

/* Location Tooltip - Larger font size */
.tooltip-location {
    font-size: 1.2em;
}

/* Show Tooltip on Button Hover - All tooltips use the same animation */
.refresh-btn:hover .tooltip,
.location-btn:hover .tooltip,
.graph-btn:hover .tooltip,
.settings-btn:hover .tooltip,
.alert-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    animation: frog-hop-tooltip 1.2s ease-out;
}

/* Frog-Hop Animation - Multi-bounce with squash & stretch */
@keyframes frog-hop-tooltip {
    /* First big hop */
    0% {
        transform: translateY(-50%) translateX(30px) scaleX(0.7) scaleY(1);
        opacity: 0;
    }
    5% {
        /* Squash before hop (compress horizontally) */
        transform: translateY(-50%) translateX(25px) scaleX(0.85) scaleY(1.1);
        opacity: 0.3;
    }
    15% {
        /* Peak of first hop - stretched and slightly past position */
        transform: translateY(-50%) translateX(-15px) scaleX(1.15) scaleY(0.9);
        opacity: 1;
    }
    25% {
        /* Landing squash */
        transform: translateY(-50%) translateX(0px) scaleX(0.9) scaleY(1.1);
    }

    /* Second medium hop */
    30% {
        /* Squash before second hop */
        transform: translateY(-50%) translateX(0px) scaleX(0.92) scaleY(1.06);
    }
    40% {
        /* Peak of second hop */
        transform: translateY(-50%) translateX(-8px) scaleX(1.08) scaleY(0.95);
    }
    50% {
        /* Landing */
        transform: translateY(-50%) translateX(0px) scaleX(0.95) scaleY(1.05);
    }

    /* Third small hop */
    55% {
        /* Squash before third hop */
        transform: translateY(-50%) translateX(0px) scaleX(0.97) scaleY(1.03);
    }
    65% {
        /* Peak of third hop */
        transform: translateY(-50%) translateX(-4px) scaleX(1.03) scaleY(0.98);
    }
    75% {
        /* Final landing */
        transform: translateY(-50%) translateX(0px) scaleX(0.98) scaleY(1.02);
    }

    /* Settle */
    85% {
        transform: translateY(-50%) translateX(0px) scaleX(1.01) scaleY(0.99);
    }
    100% {
        transform: translateY(-50%) translateX(0px) scaleX(1) scaleY(1);
        opacity: 1;
    }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .tooltip {
        font-size: 0.85em;
        min-width: 120px;
        max-width: 150px;
        padding: 10px 14px;
        right: calc(100% + 8px);
    }

    .tooltip::after {
        right: -6px;
        border-left-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
}
