* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

.card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

h1 {
  font-size: 22px;
  color: #333;
  margin-bottom: 18px;
  text-align: center;
}

form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e6eef4;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: #2980b9;
}

button {
  padding: 12px 18px;
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

button:hover {
  background: #1f6391;
}

.status {
  color: #888;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  margin-bottom: 6px;
}

.status.erro {
  color: #e74c3c;
}

.atual {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  margin: 8px 0 18px;
}

.atual-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atual h2 {
  font-size: 20px;
}

#descricao {
  opacity: 0.9;
  font-size: 14px;
  margin-top: 2px;
}

.temp-bloco {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icone {
  font-size: 40px;
}

.temp {
  font-size: 38px;
  font-weight: bold;
}

.detalhes {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 14px;
}

.detalhes div {
  text-align: center;
  flex: 1;
}

.detalhes span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.detalhes strong {
  font-size: 15px;
}

.previsao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.dia {
  background: #f2f7fb;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}

.dia .nome-dia {
  font-size: 13px;
  color: #555;
  font-weight: bold;
  text-transform: capitalize;
}

.dia .icone-dia {
  font-size: 26px;
  margin: 6px 0;
}

.dia .temps {
  font-size: 13px;
  color: #333;
}

.dia .temps .max {
  font-weight: bold;
}

.dia .temps .min {
  color: #999;
}
