    :root {
      --bg-light: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
      --bg-dark: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
      --glass-light: rgba(255, 255, 255, 0.3);
      --glass-dark: rgba(0, 0, 0, 0.3);
      --text-light: #222;
      --text-dark: #f5f5f5;
      --button-color: #6a11cb;
      --button-hover: #2575fc;
    }

    body {
      font-family: "Poppins", sans-serif;
      background: var(--bg-light);
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 100vh;
      transition: background 0.5s ease, color 0.5s ease;
    }

    body.dark {
      background: var(--bg-dark);
      color: var(--text-dark);
    }

    .container {
      margin-top: 60px;
      padding: 25px;
      border-radius: 20px;
      width: 90%;
      max-width: 420px;
      text-align: center;
      backdrop-filter: blur(15px);
      background: var(--glass-light);
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      color: var(--text-light);
      transition: background 0.5s ease, color 0.5s ease;
    }

    body.dark .container {
      background: var(--glass-dark);
      color: var(--text-dark);
    }

    h1 {
      margin-bottom: 20px;
      font-size: 28px;
      font-weight: 700;
    }

    .search-box {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    input {
      flex: 1;
      padding: 12px;
      border-radius: 10px;
      border: none;
      outline: none;
      font-size: 16px;
    }

    button {
      padding: 12px 18px;
      border: none;
      border-radius: 10px;
      background: var(--button-color);
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s;
    }

    button:hover {
      background: var(--button-hover);
      transform: translateY(-2px);
    }

    .dark-toggle {
      margin-top: 10px;
      padding: 10px 14px;
      font-size: 14px;
      border-radius: 10px;
      background: #222;
      color: #fff;
    }

    body.dark .dark-toggle {
      background: #ddd;
      color: #000;
    }

    .loading {
      font-size: 14px;
      color: #555;
      margin-top: 10px;
    }

    body.dark .loading {
      color: #aaa;
    }

    .weather-info {
      margin-top: 25px;
      animation: fadeIn 0.5s ease;
    }

    .weather-info h2 {
      font-size: 24px;
      margin-bottom: 10px;
    }

    .weather-info img {
      width: 80px;
      margin: 10px 0;
    }

    .error {
      color: #ff4b5c;
      font-size: 14px;
      margin-top: 10px;
    }

    .history {
      margin-top: 25px;
      text-align: left;
    }

    .history h3 {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .history ul {
      list-style: none;
      padding: 0;
    }

    .history li {
      cursor: pointer;
      padding: 8px;
      background: rgba(255,255,255,0.2);
      margin-bottom: 6px;
      border-radius: 8px;
      transition: 0.3s;
    }

    .history li:hover {
      background: rgba(255,255,255,0.4);
    }

    body.dark .history li {
      background: rgba(0,0,0,0.4);
    }

    body.dark .history li:hover {
      background: rgba(0,0,0,0.6);
    }

    /* Responsive */
    @media (max-width: 480px) {
      .search-box {
        flex-direction: column;
      }
      button {
        width: 100%;
      }
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }