body {
  background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
  font-family: "Lora", serif;
  margin: 0;
  padding: 0;
  color: #333;
}

a {
  color: #885df1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.weather-app {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  max-width: 700px;
  margin: 60px auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease-in-out;
}

header {
  border-bottom: 1px solid #e0dff7;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form-input {
  flex: 1;
  background-color: #f0edfb;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  padding: 14px 20px;
  transition: box-shadow 0.2s;
}

.search-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #c3b6f4;
}

.search-form-button {
  background-color: #885df1;
  padding: 14px 26px;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-form-button:hover {
  background-color: #7a4ae0;
}

main {
  padding: 20px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.weather-app-city {
  font-size: 42px;
  font-weight: bold;
  margin: 0;
}

.weather-app-details {
  font-size: 16px;
  color: rgba(39, 33, 66, 0.6);
  line-height: 26px;
  font-weight: 500;
  margin-top: 5px;
}

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

.weather-app-temperature-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

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

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

.weather-app-unit {
  font-size: 28px;
  color: #333;
  font-weight: 500;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.weather-forecast-day {
  background-color: #f9f7fe;
  border-radius: 12px;
  padding: 16px;
  flex: 1 1 0;
  text-align: center;
  min-width: 100px;
  max-width: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.weather-forecast-day:hover {
  transform: translateY(-4px);
}

.weather-forecast-date {
  color: rgba(39, 33, 66, 0.6);
  font-size: 16px;
  margin-bottom: 10px;
}

.weather-forecast-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.weather-forecast-temperatures {
  color: #f65282;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.weather-forecast-temperature {
  font-size: 16px;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #4c4c4c;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

body.dark {
  background: #1e1e2f;
  color: #e0e0e0;
}

body.dark .weather-app {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark .search-form-input {
  background-color: #2f2f3f;
  color: white;
}

body.dark .weather-forecast-day {
  background-color: #2c2c3c;
}

body.dark .weather-app-details {
  color: rgba(255, 255, 255, 0.6);
}

body.dark footer {
  color: rgba(255, 255, 255, 0.5);
}

body.dark .weather-forecast-date {
  color: #ffffff;
}

body.dark .weather-app-unit {
  color: #ffffff;
}
