* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
  }
  
  /* Body background */
  body {
    background: linear-gradient(to right, #1e1627, #0a0012);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Main container */
  .container {
    display: flex;
    flex-direction: row;
    background: #fff0fb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 1100px;
    width: 100%;
    min-height: 650px;
  }
  
  /* Left Panel */
  .left-panel {
    width: 35%;
    background: linear-gradient(to bottom, #3a284c, #30025c);
    color: white;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  /* Input and Button */
  .left-panel input,
  .left-panel button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
  }
  
  .left-panel input:focus {
    outline: none;
    background-color: #f3e8ff;
    color: #4c1d95;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  }
  
  .left-panel button {
    background-color: #fff;
    color: #9333ea;
    font-weight: bold;
    cursor: pointer;
  }
  
  .left-panel button:hover {
    background-color: #dbb4e3;
    transform: scale(1.03);
  }
  
  /* Weather info text transitions */
  .left-panel .location,
  .left-panel .sun-time,
  .left-panel .temp,
  .left-panel .weather {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  /* Trigger fade-in */
  .left-panel .location.loaded,
  .left-panel .sun-time.loaded,
  .left-panel .temp.loaded,
  .left-panel .weather.loaded {
    opacity: 1;
    transform: translateY(0);
  }
  
  .left-panel .location {
    font-size: 20px;
    margin-top: auto;
    margin-bottom: 5px;
  }
  
  .left-panel .sun-time {
    font-size: 14px;
    opacity: 0.9;
  }
  
  .left-panel .temp {
    font-size: 68px;
    font-weight: 700;
    margin: 20px 0 10px;
  }
  
  .left-panel .weather {
    font-size: 24px;
  }
  
  .city-image {
    height: 160px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('https://source.unsplash.com/400x200/?city') no-repeat center center/cover;
    opacity: 0.4;
  }
  
  /* Right Panel */
  .right-panel {
    flex: 1;
    padding: 30px;
    background-color: #faf5ff;
    display: flex;
    flex-direction: column;
  }
  
  .header h2 {
    color: #6b21a8;
    margin-bottom: 8px;
  }
  
  .header p {
    color: #7e22ce;
    font-size: 15px;
  }
  
  .forecast {
    margin-top: 40px;
  }
  
  .forecast h3 {
    margin-bottom: 18px;
    font-size: 20px;
    color: #6b21a8;
    border-bottom: 2px solid #e9d5ff;
    padding-bottom: 10px;
  }
  
  /* Forecast Grid & Cards */
  .forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .forecast-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 15px;
    color: #4c1d95;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .forecast-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
  
  .forecast-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #7c3aed;
    transition: color 0.3s ease;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      min-height: 100vh;
    }
  
    .left-panel,
    .right-panel {
      width: 100%;
    }
  
    .left-panel {
      padding-bottom: 200px;
    }
  }