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

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    background: #1a1a2e;
}

.desktop-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Weather Canvas for effects */
#weatherCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Weather Widget */
.weather-widget {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-width: 500px;
    color: white;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Location Search */
.location-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#cityInput {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#cityInput:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

#cityInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchBtn, #locationBtn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchBtn:hover, #locationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

#locationBtn {
    padding: 12px 20px;
}

/* Weather Info */
.weather-info {
    text-align: center;
    margin-bottom: 30px;
}

.main-temp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#temperature {
    font-size: 80px;
    font-weight: bold;
    text-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.weather-icon {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.location-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.location-info p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

#weatherDescription {
    text-transform: capitalize;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
}

/* Weather Details */
.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

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

.detail-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 32px;
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 20px;
    font-weight: bold;
}

/* Anime Character */
.anime-character {
    position: absolute;
    bottom: 50px;
    right: 80px;
    width: 200px;
    height: 300px;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.5s;
}

.anime-character:hover {
    opacity: 0.9;
}

/* Time Display */
.time-display {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    color: white;
}

#currentTime {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 5px;
}

#currentDate {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-widget {
        min-width: 90vw;
        padding: 30px 20px;
    }

    #temperature {
        font-size: 60px;
    }

    .weather-icon {
        font-size: 60px;
    }

    .location-info h2 {
        font-size: 24px;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .time-display {
        top: 15px;
        right: 15px;
        padding: 15px 20px;
    }

    #currentTime {
        font-size: 24px;
    }

    .anime-character {
        display: none;
    }
}

/* Loading Animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
