
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

        :root {
            --primary-color: #4a69bd;
            --secondary-color: #00CFFF;
            --accent-color: #10b981;
            --background-color: #f0f2f5;
            --card-background: #ffffff;
            --text-primary: #333333;
            --text-secondary: #666666;
            --shadow-color: rgba(0, 0, 0, 0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html, body {
            font-family: 'Poppins', sans-serif;
            height: 100%;
            overflow: hidden; /* Prevents scrollbars on the body level */
        }

        .fullscreen-container {
            display: flex;
            height: 100vh;
            width: 100vw;
        }

        /* --- Search Panel --- */
        .search-panel {
            flex: 0 0 35%; /* Takes up 35% of the width */
            background: linear-gradient(135deg, var(--primary-color), #1e3799);
            color: white;
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        }

        .branding h1 {
            font-size: 3rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .branding h1 i {
            color: var(--secondary-color);
        }

        .branding p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .search-box {
            display: flex;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50px;
            padding: 0.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            margin-top: 2rem;
            width: 100%;
            max-width: 400px;
        }

        #cityInput {
            flex: 1;
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            background: transparent;
            color: #333;
            outline: none;
        }

        #searchBtn {
            padding: 0.8rem 1.5rem;
            border: none;
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        #searchBtn:hover {
            background: linear-gradient(135deg, #00b8e6, #3a5aa0);
        }

        .recent-searches {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            margin-top: 1.5rem;
            max-width: 100%;
        }

        .recent-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 0.4rem 1rem;
            color: white;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }

        .recent-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* --- Results Panel --- */
        .results-panel {
            flex: 1; /* Takes up the remaining 65% of the width */
            padding: 2rem 3rem;
            overflow-y: auto; /* Allow scrolling only in this panel */
            background-color: var(--background-color);
        }

        .weather-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .weather-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .weather-header h2 {
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .weather-header p {
            color: var(--text-secondary);
            font-size: 1.2rem;
        }

        .weather-icon {
            font-size: 5rem;
            color: var(--primary-color);
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }

        .temp-display {
            font-size: 5rem;
            font-weight: 700;
            text-align: center;
            margin: 1rem 0;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .detail-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            background-color: var(--card-background);
            border-radius: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px var(--shadow-color);
        }

        .detail-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px var(--shadow-color);
        }

        .detail-item i {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .detail-item .detail-info p {
            margin: 0;
        }

        .detail-item .detail-info p:first-child {
            font-size: 1rem;
            color: var(--text-secondary);
        }

        .detail-item .detail-info p:last-child {
            font-size: 1.3rem;
            font-weight: 600;
        }

        .time-info {
            background: linear-gradient(135deg, var(--card-background), #e9ecef);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 4px 10px var(--shadow-color);
            margin-top: 2rem;
        }

        .time-info h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .time-display {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .date-display {
            font-size: 1.1rem;
            color: var(--text-secondary);
        }

        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem;
            text-align: center;
            height: 100%;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid rgba(74, 105, 189, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .error {
            color: #e74c3c;
            font-weight: 600;
            padding: 2rem;
            background: rgba(231, 76, 60, 0.1);
            border-radius: 15px;
            text-align: center;
            margin: 1rem 0;
        }

        .footer {
            text-align: center;
            padding: 1rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: auto;
        }

        /* --- Responsive Design for Mobile --- */
        @media (max-width: 768px) {
            .fullscreen-container {
                flex-direction: column; /* Stack panels vertically */
            }

            .search-panel {
                flex: 0 0 auto; /* Allow height to be determined by content */
                width: 100%;
                height: 40vh; /* Take up 40% of viewport height */
                padding: 1.5rem;
                box-shadow: 0 5px 15px rgba(0,0,0,0.1);
                justify-content: flex-start;
                padding-top: 2rem;
            }
            
            .branding h1 {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }
            
            .branding p {
                font-size: 0.9rem;
                margin-bottom: 1rem;
            }

            .search-box {
                margin-top: 1rem;
                max-width: 100%;
            }
            
            #cityInput {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }
            
            #searchBtn {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }
            
            .recent-searches {
                margin-top: 1rem;
                gap: 0.3rem;
            }
            
            .recent-btn {
                font-size: 0.8rem;
                padding: 0.3rem 0.8rem;
                max-width: 120px;
            }

            .results-panel {
                flex: 1;
                width: 100%;
                height: 60vh; /* Take up remaining 60% of height */
                padding: 1rem;
            }

            .weather-header {
                flex-direction: column;
                text-align: center;
                margin-bottom: 1rem;
            }

            .weather-header h2 {
                font-size: 1.8rem;
            }
            
            .weather-header p {
                font-size: 1rem;
            }
            
            .weather-icon {
                font-size: 3rem;
            }

            .temp-display {
                font-size: 3rem;
                margin: 0.5rem 0;
            }

            .weather-details {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 1rem;
                margin: 1rem 0;
            }
            
            .detail-item {
                padding: 1rem;
            }
            
            .detail-item i {
                font-size: 1.5rem;
            }
            
            .detail-item .detail-info p:last-child {
                font-size: 1.1rem;
            }

            .time-display {
                font-size: 2rem;
            }
            
            .date-display {
                font-size: 0.9rem;
            }
            
            .time-info {
                padding: 1.5rem;
                margin-top: 1rem;
            }
            
            .time-info h3 {
                font-size: 1.2rem;
            }
            
            .time-info p {
                font-size: 0.9rem;
            }
            
            .footer {
                font-size: 0.8rem;
                padding: 0.5rem;
            }
        }
    