* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* THEME VARIABLES */
:root {
  --bg: linear-gradient(135deg, #667eea, #764ba2);
  --card-bg: #ffffff;
  --text: #000000;
  --btn: #667eea;
}

html[data-theme="dark"] {
  --bg: linear-gradient(135deg, #141E30, #243B55);
  --card-bg: #1f1f1f;
  --text: #ffffff;
  --btn: #8f94fb;
}

body {
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease;
}

/* TOGGLE BUTTON */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 22px;
  border: none;
  background: var(--card-bg);
  border-radius: 50%;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* WEATHER CARD */
.weather-container {
  background: var(--card-bg);
  width: 320px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: 0.4s ease;
}

.search {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.search input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.search button {
  background: var(--btn);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

#temp {
  font-size: 36px;
  margin: 10px 0;
}