 :root {
      --bg: #1c1f2b;
      --card: #12141c;
      --accent: #2e8bff;
      --text: #fff;
      --text-light: #bbb;
      --border: #2e2e3f;
      --shadow: 0 4px 24px rgba(0,0,0,0.2);
      --error: #ff4d4f;
      --success: #36d399;
    }
    body.light {
      --bg: #f4f6fc;
      --card: #fff;
      --accent: #2e8bff;
      --text: #222;
      --text-light: #555;
      --border: #e0e0e0;
      --shadow: 0 4px 24px rgba(30,30,60,0.06);
    }
    * { box-sizing: border-box; font-family: 'Inter', sans-serif; }
    body {
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      margin: 0;
      transition: background 0.3s, color 0.3s;
    }
    .container {
      max-width: 1200px;
      margin: 40px auto;
      background: var(--card);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 24px;
      display: flex;
      gap: 24px;
      transition: background 0.3s;
    }
    .sidebar {
      width: 220px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: stretch;
    }
    .sidebar .menu-item {
      background: var(--bg);
      padding: 14px;
      border-radius: 12px;
      text-align: center;
      cursor: pointer;
      color: var(--text-light);
      font-weight: 600;
      transition: background 0.2s, color 0.2s, transform 0.15s;
    }
    .sidebar .menu-item:hover, .sidebar .menu-item.active {
      background: var(--accent);
      color: #fff;
      transform: scale(1.05);
    }
    .toggle-mode {
      margin-top: 24px;
      background: var(--bg);
      color: var(--text-light);
      border: none;
      border-radius: 12px;
      padding: 10px;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.2s, color 0.2s;
    }
    .toggle-mode:hover {
      background: var(--accent);
      color: #fff;
    }
    .favorites {
      margin-top: 24px;
      background: var(--bg);
      border-radius: 12px;
      padding: 10px;
      box-shadow: var(--shadow);
      display: none;
    }
    .favorites h4 {
      margin-bottom: 8px;
      color: var(--accent);
      font-size: 1.06rem;
        display: none;
    }
    .favorite-city {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
      cursor: pointer;
      color: var(--text-light);
      border-bottom: 1px solid var(--border);
      font-size: 1.02rem;
        display: none;
    }
    .favorite-city:last-child { border-bottom: none; }
    .favorite-city span {
      transition: color 0.2s;
        display: none;
    }
    .favorite-city:hover span {
      color: var(--accent);
        display: none;
    }
    .remove-fav {
      color: var(--error);
      background: none;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      margin-left: 8px;
        display: none;
    }
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .search-box {
      position: relative;
      margin-bottom: 8px;
    }
    .search {
      background: var(--bg);
      padding: 13px 16px;
      border-radius: 12px;
      width: 100%;
      border: none;
      color: var(--text);
      font-size: 1.1rem;
      outline: none;
      box-shadow: var(--shadow);
      transition: background 0.3s, color 0.3s;
    }
    .autocomplete {
      position: absolute;
      top: 44px;
      left: 0;
      right: 0;
      background: var(--card);
      border-radius: 0 0 12px 12px;
      box-shadow: var(--shadow);
      z-index: 10;
      overflow: hidden;
    }
    .autocomplete div {
      padding: 10px 16px;
      cursor: pointer;
      color: var(--text-light);
      transition: background 0.2s, color 0.2s;
    }
    .autocomplete div:hover {
      background: var(--accent);
      color: #fff;
    }
    .get-location {
      position: absolute;
      top: 10px;
      right: 10px;
      background: var(--accent);
      border: none;
      color: #fff;
      border-radius: 8px;
      padding: 6px 12px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: background 0.2s;
    }
    .get-location:hover {
      background: #1a6fd1;
    }
    .add-fav-btn {
      margin-left: 8px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 6px 12px;
      cursor: pointer;
      font-size: 0.95rem;
      transition: background 0.2s;
        display: none;
    }
    .add-fav-btn:hover {
      background: #1a6fd1;
        display: none;
    }
    .weather-info {
      background: var(--bg);
      border-radius: 12px;
      padding: 22px 20px;
      display: flex;
      align-items: center;
      gap: 32px;
      box-shadow: var(--shadow);
      min-height: 120px;
      position: relative;
      overflow: hidden;
      transition: background 0.3s;
      animation: fadeIn 0.7s;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px);}
      to { opacity: 1; transform: translateY(0);}
    }
    .weather-info .loading {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      font-size: 1.2rem;
      color: var(--accent);
      font-weight: 600;
    }
    .weather-info img.weather-main-icon {
      width: 100px;
      height: 100px;
      object-fit: contain;
      filter: drop-shadow(0 2px 8px var(--accent));
      transition: filter 0.2s;
      animation: popIn 0.5s;
    }
    @keyframes popIn {
      from { opacity: 0; transform: scale(0.7);}
      to { opacity: 1; transform: scale(1);}
    }
    .weather-info-details h2 {
      font-size: 2.1rem;
      font-weight: 600;
      margin-bottom: 2px;
      letter-spacing: 0.5px;
    }
    .weather-info-details h3 {
      font-size: 1.5rem;
      font-weight: 400;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .weather-info-details p {
      font-size: 1.1rem;
      color: var(--text-light);
    }
    .temp-icon {
      width: 28px;
      height: 28px;
      vertical-align: middle;
    }
    .forecast, .air-conditions {
      background: var(--bg);
      border-radius: 12px;
      padding: 18px;
      box-shadow: var(--shadow);
      transition: background 0.3s;
    }
    .forecast h3, .air-conditions h3 {
      margin-bottom: 8px;
      font-size: 1.2rem;
      color: var(--accent);
    }
    .forecast-grid {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
      gap: 8px;
    }
    .forecast-item {
      text-align: center;
      background: var(--card);
      border-radius: 8px;
      padding: 8px 0;
      width: 62px;
      box-shadow: var(--shadow);
      transition: background 0.2s;
      animation: fadeIn 0.6s;
    }
    .forecast-item p {
      margin-bottom: 2px;
      font-size: 1rem;
    }
    .forecast-item img {
      width: 32px;
      height: 32px;
      margin-bottom: 2px;
    }
    .air-conditions p {
      margin: 4px 0;
      color: var(--text-light);
      font-size: 1.06rem;
    }
    .seven-day {
      background: var(--bg);
      padding: 18px;
      border-radius: 12px;
      width: 260px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: background 0.3s;
    }
    .seven-day h3 {
      color: var(--accent);
      margin-bottom: 8px;
      font-size: 1.2rem;
    }
    .seven-day-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      color: var(--text-light);
      font-size: 1.07rem;
      animation: fadeIn 0.7s;
    }
    .seven-day-item:last-child {
      border-bottom: none;
    }
    .seven-day-item img {
      width: 28px;
      height: 28px;
      vertical-align: middle;
      margin-right: 6px;
    }
    .dev-links {
      margin-top: 16px;
    }
    .dev-links a {
      display: block;
      color: var(--text-light);
      text-decoration: none;
      margin: 8px 0;
      transition: color 0.3s;
      font-size: 0.98rem;
    }
    .dev-links a:hover {
      color: var(--accent);
    }
    .error-message {
      color: var(--error);
      background: #ffeded;
      border-radius: 8px;
      padding: 8px 12px;
      margin-top: 8px;
      font-size: 1.05rem;
      font-weight: 500;
      animation: fadeIn 0.5s;
    }
    @media (max-width: 900px) {
      .container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
      }
      .sidebar, .seven-day {
        width: 100%;
        max-width: 100%;
      }
      .main {
        width: 100%;
      }
      .seven-day {
        margin-top: 10px;
      }
    }
    @media (max-width: 600px) {
      .forecast-grid {
        flex-wrap: wrap;
        gap: 4px;
      }
      .forecast-item {
        width: 44px;
        font-size: 0.9rem;
      }
      .weather-info img.weather-main-icon {
        width: 60px;
        height: 60px;
      }
      .seven-day {
        padding: 10px;
      }
    }
    .main-section { display: none; }
    .main-section.active { 
      display: block; 
      animation: fadeIn 0.3s;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .cities-list { margin: 15px 0; }
    .city-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      background: var(--bg);
      border-radius: 8px;
      margin-bottom: 8px;
    }
    .map-container {
      height: 400px;
      border-radius: 12px;
      overflow: hidden;
      margin-top: 15px;
    }
    .settings-option {
      margin: 15px 0;
      padding: 12px;
      background: var(--bg);
      border-radius: 8px;
    }
    .weather-info {
  margin-bottom: 20px;
}
.forecast {
  margin-bottom: 20px;
}
.air-conditions {
  margin-bottom: 20px;
}
footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}
