* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.top-right-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 50;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 200px;
}

.search-container.expanded {
    width: 300px;
    border-radius: 15px;
}

.search-input-container {
    display: flex;
    align-items: center;
}

.search-input {
    background: none;
    border: none;
    color: white;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
    flex: 1;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.search-suggestions {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.search-suggestions.show {
    display: flex;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestions {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.search-suggestions.show {
    display: flex;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.weather-container {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.location {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.weather-icon-container {
    margin-bottom: 30px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.weather-icon.sunny {
    filter: brightness(0) saturate(100%) invert(54%) sepia(87%) saturate(2995%) hue-rotate(12deg) brightness(104%) contrast(101%);
}

.weather-icon.raining {
    filter: brightness(0) saturate(100%) invert(19%) sepia(100%) saturate(4218%) hue-rotate(207deg) brightness(97%) contrast(102%);
}

.weather-icon.snowing {
    filter: brightness(0) saturate(100%) invert(42%) sepia(0%) saturate(1225%) hue-rotate(154deg) brightness(93%) contrast(86%);
}

.weather-icon.cloudy {
    filter: brightness(0) saturate(100%) invert(71%) sepia(0%) saturate(181%) hue-rotate(154deg) brightness(94%) contrast(87%);
}

.weather-icon:not(.sunny):not(.raining):not(.snowing):not(.cloudy) {
    filter: invert(1);
}

.weather-icon:hover {
    transform: scale(1.1);
}

.weather-status {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 300;
}

.weather-status .highlight.sunny {
    color: #FFAE00;
}

.weather-status .highlight.raining {
    color: #047DFA;
}

.weather-status .highlight.snowing {
    color: #676767;
}

.weather-status .highlight.cloudy {
    color: #AEAEAE;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.detail-value {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.loading {
    display: none;
    text-align: center;
    font-size: 16px;
    opacity: 0.8;
}

.loading.show {
    display: block;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-top: 20px;
    display: none;
    font-size: 16px;
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.error.show {
    display: block;
}

@media (max-width: 768px) {
    .logo {
        top: 20px;
        left: 20px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .top-right-controls {
        top: 20px;
        right: 20px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }

    .search-container {
        width: 150px;
    }

    .search-container.expanded {
        width: 250px;
    }

    .weather-container {
        padding: 20px;
        margin-top: 120px;
    }

    .weather-details {
        gap: 10px;
    }

    .weather-status {
        font-size: 24px;
    }

    .location {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .weather-icon {
        width: 60px;
        height: 60px;
    }

    .weather-status {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .detail-item {
        padding: 8px 0;
    }
}