/* Gaya dasar dan layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header img {
  max-height: 60px;
}

header h1 {
  font-size: 1.5em;
  color: #ff5722;
  text-align: center;
  flex: 1;
}

/* Informasi cuaca */
#weather-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  background-color: #eef;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
}

.weather-item {
  text-align: center;
}

.weather-item h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
}

.weather-item p {
  font-size: 1.4em;
  font-weight: bold;
}

/* Panel informasi */
#info-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ff5722;
  color: #fff;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.info-item {
  text-align: center;
}

.info-item h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
}

.info-item p {
  font-size: 1.4em;
  font-weight: bold;
}

/* Grafik */
#charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.chart {
  width: 100%;
  height: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

/* Kontrol auto-refresh */
#controls {
  margin-top: 20px;
  text-align: center;
}

#controls label {
  margin-right: 10px;
}

#controls button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff5722;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#controls button:hover {
  background-color: #e64a19;
}

/* Responsif */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.2em;
  }

  #charts-container {
    grid-template-columns: 1fr;
  }
}
