/* Responsive styles for mobile devices */
@media (max-width: 700px) {
  .weather-app {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
  }
  .header-buttons {
    flex-direction: column;
    gap: 6px;
  }
  .weather-app-data {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .weather-app-city {
    font-size: 28px;
    line-height: 34px;
  }
  .weather-app-temperature {
    font-size: 54px;
    line-height: 54px;
  }
  .weather-app-unit {
    font-size: 20px;
  }
  .weather-forecast {
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
  }
  .weather-forecast-day {
    width: 100%;
    margin-bottom: 12px;
  }
  .weather-forecast-icon {
    width: 64px;
    height: 64px;
  }
  .search-form-input {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px;
  }
  .search-form-button {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 0;
    font-size: 15px;
  }
  .ai-chatbox {
    padding: 10px 6px 8px 6px;
  }
  .joke-response, .ai-chat-response {
    font-size: 1em;
  }
  footer {
    font-size: 12px;
    padding: 18px 0 0 0;
  }
}
.ai-chatbox {
  background: #f9f7fe;
  border-radius: 8px;
  padding: 16px 16px 10px 16px;
  box-shadow: 0 2px 8px rgba(65, 50, 100, 0.04);
  margin-bottom: 24px;
}
.ai-chat-response {
  color: #2075A7;
  font-size: 1.05em;
  font-weight: 500;
  margin-top: 8px;
}
body.dark-theme .ai-chatbox {
  background: #222b36;
}
body.dark-theme .ai-chat-response {
  color: #7ecbff;
}
.joke-response {
  color: #2075A7;
  font-size: 1.05em;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 28px;
  text-align: center;
}
body.dark-theme .joke-response {
  color: #7ecbff;
}
/* Header buttons group */
.header-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.header-buttons .theme-button {
  flex: 1 1 0;
  min-width: 120px;
  margin-left: 0;
}
.weather-app-unit a {
  color: #885df1;
  text-decoration: none;
  font-weight: bold;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.weather-app-unit a.active {
  color: #f65282;
  opacity: 1;
  text-decoration: underline;
}
.weather-app-unit a:hover {
  opacity: 1;
  color: #7a4de6;
}
/* City suggestions dropdown */
.city-suggestions {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-height: 180px;
  overflow-y: auto;
  width: 100%;
  z-index: 10;
}
.city-suggestions.active {
  display: block;
}
.city-suggestions div {
  padding: 10px 16px;
  cursor: pointer;
}
.city-suggestions div:hover {
  background: #f9f7fe;
  color: #885df1;
}
/* Dark theme styles */
body.dark-theme {
  background: #131C24;
  color: #E8F1F7;
}
.weather-app.dark-theme,
body.dark-theme .weather-app {
  background: #222b36;
  color: #E8F1F7;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme .weather-app-city {
  color: #E8F1F7;
}
body.dark-theme .weather-app-details,
body.dark-theme .weather-app-details strong {
  color: #b0c4d6;
}
body.dark-theme .weather-app-temperature,
body.dark-theme .weather-app-unit {
  color: #E8F1F7;
}
body.dark-theme .search-form-input {
  background: #222b36;
  color: #E8F1F7;
  border: 1px solid #E8F1F7;
}
body.dark-theme .search-form-button {
  background: #2075A7;
  color: #E8F1F7;
}
body.dark-theme .weather-forecast {
  background: #222b36;
}
body.dark-theme .weather-forecast-date {
  color: #b0c4d6;
}
body.dark-theme .weather-forecast-temperature {
  color: #E8F1F7;
}
body.dark-theme footer {
  color: #b0c4d6;
}
.theme-button {
  background: #885df1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  margin-left: 5px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  vertical-align: middle;
}
.theme-button:hover {
  background: #7a4de6;
  color: #fff;
}
body {
  background-color: #f9f7fe;
  font-family: "Roboto", sans-serif;
}

a {
  color: #885df1;
}

.weather-app {
  background: white;
  max-width: 600px;
  margin: 45px auto;
  box-shadow: 0 30px 50px rgba(65, 50, 100, 0.08);
  border-radius: 16px;
  padding: 30px;
}

header {
  border-bottom: 1px solid #f9f7fe;
  padding: 0 0 30px 0;
}

.search-form-input {
  background-color: #f9f7fe;
  border: none;
  border-radius: 6px;
  width: 80%;
  font-size: 16px;
  padding: 15px 20px;
}

.search-form-button {
  background: #885df1;
  padding: 15px 30px;
  border: none;
  font-size: 16px;
  margin-left: 5px;
  border-radius: 6px;
  color: white;
}

main {
  padding: 30px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
}

.weather-app-city {
  margin: 0;
  font-size: 38px;
  line-height: 48px;
}

.weather-app-details {
  font-size: 16px;
  color: rgba(39, 33, 66, 0.4);
  line-height: 24px;
  font-weight: 500;
}

.weather-app-details strong {
  color: #f65282;
}

.weather-app-temperature-container {
  display: flex;
}

.weather-app-icon {
  width: 88px;
  height: 88px;
}

.weather-app-temperature {
  font-size: 88px;
  line-height: 88px;
  font-weight: bold;
}

.weather-app-unit {
  margin-top: 6px;
  font-size: 28px;
}

.weather-forecast {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.weather-forecast-date {
  text-align: center;
  color: rgba(39, 33, 66, 0.4);
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 10px;
}

.weather-forecast-icon {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
}
.weather-forecast-temperatures {
  text-align: center;
  color: #f65282;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.weather-forecast-temperature {
  padding: 0 10px;
}

footer {
  border-top: 1px solid #f9f7fe;
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}