/* Custom Global Styles that extend Bootstrap */

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    background-position-y: calc(50% + var(--scroll-y, 0));
    z-index: -1;
}

/* Custom gradient for header to match original theme with transparency */
.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%) !important;
    backdrop-filter: blur(5px);
}

/* Modern font for the main title */
h1.display-5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* Autocomplete Styles (Keeping distinct as Bootstrap doesn't natively have this exact behavior) */
.city-autocomplete-container {
    position: relative;
}

.city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.city-dropdown.active {
    display: block;
}

.city-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.city-dropdown-item:hover,
.city-dropdown-item.highlighted {
    background-color: #0d6efd;
    /* Bootstrap primary */
    color: white;
}

.match-highlight {
    font-weight: bold;
    text-decoration: underline;
}

/* Floating Donate Button Position */
.donate-floating {
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 1050;
}

@media (max-width: 768px) {
    .donate-floating {
        bottom: 180px;
        right: 10px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }
}

/* Transparent Card Wrapper */
.card-transparent {
    background-color: transparent !important;
}

.monthly-values-canvas {
    display: block;
    width: 100%;
    height: 64px;
}

/* Transparent Footer */
.footer-transparent {
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}