* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f1f3f4;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#search-wrapper.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    justify-content: flex-start;
}

.search-box {
    display: flex;
    gap: 10px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f1f3f4;
}

input:focus {
    outline: none;
    border-color: #1a73e8;
}

button {
    flex: 0 0 120px;
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

button:hover {
    background: #1557b0;
}

.current-weather {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.location {
    margin-bottom: 20px;
}

.location h2 {
    font-size: 1.5rem;
    color: #202124;
    margin-bottom: 4px;
}

.date {
    color: #5f6368;
    font-size: 0.9rem;
}

.main-weather {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.temperature {
    font-size: 3.5rem;
    font-weight: 400;
    color: #202124;
}

.description {
    font-size: 1.2rem;
    color: #5f6368;
}

.weather-details {
    display: flex;
    gap: 24px;
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label {
    color: #5f6368;
    font-size: 0.9rem;
}

.hourly-forecast, .daily-forecast {
    padding: 20px;
}

.hourly-forecast h3, .daily-forecast h3 {
    color: #202124;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.hourly-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hourly-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hourly-card {
    min-width: 100px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.hourly-card .time {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.hourly-card .temp {
    font-size: 1.2rem;
    color: #202124;
    margin-bottom: 4px;
}

.daily-forecast {
    margin-top: 8px;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.daily-card {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.daily-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.daily-card .day {
    color: #202124;
    font-weight: 500;
    margin-bottom: 8px;
}

.forecast-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.temp-range {
    font-size: 1.1rem;
    color: #202124;
    margin-top: 4px;
}

.temp-max {
    font-weight: bold;
    color: #e67c00;
}

.temp-min {
    color: #5f6368;
}

.temperature-curve {
    margin: 32px 0 8px 0; /* Extra space above the chart for label visibility */
    padding: 0 10px;
    min-height: 140px;
    max-height: 180px;
    position: relative;
}

.weather-icon {
    width: 64px;
    height: 64px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 20px;
    vertical-align: middle;
}

/* Make sun icon yellow */
.weather-icon[style*="01d"] {
    filter: brightness(1.2) sepia(1) hue-rotate(-20deg) saturate(5) contrast(1.2);
}

.details-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.details-btn:hover {
    background: #1557b0;
}

.day-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.details-content {
    padding: 16px;
    text-align: center;
}

.details-content h3 {
    color: #202124;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.details-content p {
    color: #5f6368;
    margin: 8px 0;
    font-size: 0.95rem;
}

.close-btn {
    margin-top: 12px;
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #c82333;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .main-weather {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .weather-details {
        flex-direction: column;
        gap: 12px;
    }
    .temperature-curve {
        min-height: 120px;
        max-height: 140px;
        margin-top: 24px;
    }
    .search-box {
        gap: 8px;
        padding: 10px;
    }
    button {
        flex: 0 0 100px;
        padding: 12px 16px;
    }
} 