* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.app-container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

header p {
  font-size: 0.95rem;
  color: #555;
}

main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: #4f46e5;
  color: #fff;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

button:hover {
  background: #4338ca;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.error {
  color: #b91c1c;
  font-size: 0.8rem;
  min-height: 1em;
}

.card {
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.error-card {
  background: #fee2e2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.hidden {
  display: none;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.weather-main img {
  width: 64px;
  height: 64px;
}

.temp {
  font-size: 2rem;
  font-weight: 700;
}

.feels,
.humidity,
.desc {
  font-size: 0.95rem;
  color: #374151;
}

footer {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  .app-container {
    padding: 20px 16px;
  }

  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
