:root {
  --primary-color: #e312ce;
  --primary-hover: #d700ba;
  --background-color: #f0f8ff;
  --text-color: #333;
  --secondary-text: #666;
  --border-color: #ccc;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.weather-app {
  width: 360px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

#current-date {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 15px;
}

.search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

#search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
}

.search-form button {
  padding: 10px 16px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: var(--primary-hover);
}

.current-weather h1 {
  font-size: 48px;
  color: var(--primary-hover);
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.current-weather p {
  font-size: 16px;
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.icon {
  font-size: 22px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 3px dotted var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#weather-icon {
  width: 80px;
  margin-top: 10px;
  display: none;
}

.forecast {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.weather-day {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  width: 65px;
  flex: 1;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.weather-day img {
  width: 40px;
  margin: 6px 0;
}

.day-name {
  font-weight: bold;
  color: var(--primary-color);
}

.day-date {
  font-size: 12px;
  color: var(--secondary-text);
}

.day-temp {
  font-size: 14px;
  color: var(--text-color);
}

footer {
  font-size: 12px;
  color: #999;
  margin-top: 20px;
}
