:root {
  --bg-1: #0f172a;
  --bg-2: #0366d6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.06);
  --card-radius: 16px;
  --gap: 18px;
  --transition: 220ms;
}

* {
  box-sizing: border-box;
}


html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg, var(--bg-2) 0%, #0b1220 60%);
  color: #fff;
  display: flex;
  flex-direction: column;
}

#heading {
  text-align: center;
  color: white;
  margin: 20px 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.cards-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}

.cards {
  width: min(1100px, 96%);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.card {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  padding: 18px;
  min-height: 84px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(8px) saturate(120%);
}

.controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 200px 120px auto;
  gap: 12px;
}

.main-card {
  grid-column: 1 / span 7;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.details {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-content: start;
}

.details .card {
  text-align: left;
}

.temp-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

#weather-icon {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#weather-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

input[type="text"],
select,
button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

select {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

select option {
  background-color: white;
  color: black;
}

button.primary {
  background: linear-gradient(
    90deg,
    rgba(4, 120, 255, 0.95),
    rgba(2, 86, 193, 0.95)
  );
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(2, 86, 193, 0.28);
}

@media (max-width: 980px) {
  .main-card,
  .details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .details {
    grid-template-columns: 1fr;
  }
}

footer {
  text-align: center;
  margin: 20px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
input::placeholder {
  color: #ffffff; /* Pure white for perfect visibility */
  opacity: 1; /* Make sure browsers don't make it look faded */
}
