/* All CSS from previous steps remains here */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        :root {
            --primary: #4a6fa5;
            --secondary: #166088;
            --light: #f8f9fa;
            --dark: #343a40;
            --success: #28a745;
            --danger: #dc3545;
            --warning: #ffc107;
            --info: #17a2b8;
        }
        
        body {
            background: linear-gradient(135deg, #1e3c72, #2a5298, #4a6fa5);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: var(--light);
        }
        
        .weather-container {
            width: 100%;
            max-width: 900px;
            background: rgba(255, 255, 255, 0.1);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        /* All previous CSS styles remain - I'm just adding new ones below */
        
        /* Weather Data Display Styles */
        .weather-data {
            display: none;
        }
        
        .location-info {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .city-name {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .country {
            font-size: 1.2rem;
            opacity: 0.8;
            background: rgba(255, 255, 255, 0.1);
            padding: 5px 15px;
            border-radius: 20px;
            display: inline-block;
        }
        
        .date-time {
            font-size: 1rem;
            opacity: 0.7;
            margin-top: 10px;
        }
        
        .current-weather {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .temperature-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .weather-icon {
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .weather-icon img {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
        }
        
        .temperature {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1;
        }
        
        .temperature span {
            font-size: 2rem;
            opacity: 0.8;
            vertical-align: top;
        }
        
        .weather-description {
            font-size: 1.5rem;
            font-weight: 500;
            text-transform: capitalize;
        }
        
        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .detail-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        
        .detail-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .detail-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        
        .detail-info h4 {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 5px;
            font-weight: 400;
        }
        
        .detail-info p {
            font-size: 1.3rem;
            font-weight: 600;
        }
        
        /* Weather condition specific backgrounds */
        .weather-card.sunny {
            background: linear-gradient(135deg, rgba(255, 200, 50, 0.1), rgba(255, 150, 50, 0.1));
        }
        
        .weather-card.cloudy {
            background: linear-gradient(135deg, rgba(150, 150, 150, 0.1), rgba(100, 100, 150, 0.1));
        }
        
        .weather-card.rainy {
            background: linear-gradient(135deg, rgba(50, 100, 200, 0.1), rgba(25, 50, 100, 0.1));
        }
        
        .weather-card.snowy {
            background: linear-gradient(135deg, rgba(200, 220, 255, 0.1), rgba(150, 180, 220, 0.1));
        }
        
        /* Responsive adjustments for weather data */
        @media (max-width: 768px) {
            .current-weather {
                flex-direction: column;
                text-align: center;
            }
            
            .temperature-section {
                flex-direction: column;
                gap: 10px;
            }
            
            .city-name {
                font-size: 1.8rem;
            }
            
            .temperature {
                font-size: 3rem;
            }
            
            .weather-details {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            .weather-details {
                grid-template-columns: 1fr;
            }
            
            .city-name {
                font-size: 1.5rem;
            }
            
            .temperature {
                font-size: 2.5rem;
            }
        }
        
         /* Header Styles */
        .header {
            padding: 30px;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(to right, #fff, #a8d0e6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .header h1 i {
            margin-right: 15px;
            color: #a8d0e6;
        }
        
        .header p {
            font-size: 1rem;
            opacity: 0.8;
        }
        
        /* Search Container Styles */
        .search-container {
            padding: 20px 30px;
            display: flex;
            gap: 15px;
            background: rgba(0, 0, 0, 0.1);
        }
        
        .search-box {
            flex: 1;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            border: none;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }
        
        .search-box input:focus {
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
        }
        
        .search-box input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .search-box i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.8);
        }
        
        .search-btn {
            padding: 0 30px;
            border: none;
            border-radius: 50px;
            background: linear-gradient(to right, #3498db, #2c3e50);
            color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-width: 120px;
        }
        
        .search-btn:hover {
            background: linear-gradient(to right, #2c3e50, #3498db);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .search-btn:active {
            transform: translateY(0);
        }
        
        /* Weather Display Styles */
        .weather-display {
            padding: 30px;
            min-height: 400px;
            position: relative;
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 50px;
            font-size: 1.2rem;
        }
        
        .loading i {
            margin-right: 10px;
            font-size: 1.5rem;
        }
        
        .weather-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 30px;
            transition: all 0.3s ease;
        }
        
        .default-message {
            text-align: center;
            padding: 60px 20px;
        }
        
        .default-message i {
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.3);
            margin-bottom: 20px;
        }
        
        .default-message h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.9);
        }
        
        .default-message p {
            font-size: 1rem;
            opacity: 0.7;
        }
        
        /* Error Message Styles */
        .error-message {
            display: none;
            background: rgba(220, 53, 69, 0.2);
            border: 1px solid rgba(220, 53, 69, 0.5);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
        }
        
        .error-message i {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #ff6b6b;
        }
        
        /* Footer Styles */
        .footer {
            padding: 20px;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            opacity: 0.7;
        }

           /* All previous CSS remains, adding new optimizations below */
        
        /* Weather icon animation */
        .weather-icon-animate {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        /* Recent searches styling */
        .recent-searches {
            padding: 15px 30px;
            background: rgba(0, 0, 0, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .recent-searches h4 {
            font-size: 0.9rem;
            margin-bottom: 10px;
            opacity: 0.8;
            font-weight: 500;
        }
        
        .recent-searches h4 i {
            margin-right: 8px;
        }
        
        .recent-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .recent-tag {
            background: rgba(255, 255, 255, 0.1);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .recent-tag:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        /* Error message enhancements */
        .error-content {
            text-align: center;
        }
        
        .error-content i {
            font-size: 2.5rem;
            color: #ff6b6b;
            margin-bottom: 15px;
        }
        
        .error-content h3 {
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        .error-content p {
            margin-bottom: 15px;
            opacity: 0.9;
        }
        
        .api-key-warning {
            background: rgba(255, 204, 0, 0.1);
            border: 1px solid rgba(255, 204, 0, 0.3);
            border-radius: 8px;
            padding: 10px;
            margin-top: 10px;
            font-size: 0.9rem;
        }
        
        .api-key-warning i {
            font-size: 1rem;
            color: #ffcc00;
            margin-right: 5px;
        }
        
        .retry-btn {
            background: linear-gradient(to right, #3498db, #2c3e50);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            margin-top: 10px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .retry-btn:hover {
            background: linear-gradient(to right, #2c3e50, #3498db);
            transform: translateY(-2px);
        }
        
        /* Weather condition specific enhancements */
        .weather-card.sunny {
            color: #333;
        }
        
        .weather-card.cloudy {
            color: #f8f9fa;
        }
        
        .weather-card.rainy {
            color: #e3f2fd;
        }
        
        .weather-card.stormy {
            color: #e8eaf6;
        }
        
        .weather-card.snowy {
            color: #e3f2fd;
        }
        
        .weather-card.foggy {
            color: #f5f5f5;
        }
        
        /* Button disabled state */
        .search-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        
        /* Smooth transitions for all interactive elements */
        .detail-card, .search-btn, .recent-tag, .retry-btn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Improved responsive design */
        @media (max-width: 768px) {
            .recent-searches {
                padding: 12px 20px;
            }
            
            .recent-tags {
                justify-content: center;
            }
            
            .error-content i {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 480px) {
            .recent-tag {
                font-size: 0.8rem;
                padding: 4px 10px;
            }
            
            .error-content h3 {
                font-size: 1.1rem;
            }
            
            .error-content p {
                font-size: 0.9rem;
            }
        }
        
        /* Print styles */
        @media print {
            .search-container,
            .recent-searches,
            .error-message,
            .footer {
                display: none;
            }
            
            .weather-container {
                box-shadow: none;
                border: 1px solid #ccc;
                background: white;
                color: black;
            }
            
            .weather-card {
                background: white !important;
                color: black !important;
            }
        }
    