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

body {
  background: #f5f6fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.8rem;
  color: #0077b6;
  margin-bottom: 8px;
}

header p {
  font-size: 1rem;
  color: #555;
}

/* Input Section */
.input-section {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.input-section input {
  padding: 10px 14px;
  width: 260px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.input-section button {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #0077b6;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.input-section button:hover {
  background: #023e8a;
}

/* Chart Section */
.chart-section {
  text-align: center;
}

.chart-section h2 {
  margin-bottom: 15px;
  color: #0077b6;
}

.chart-section button {
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #0096c7;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.chart-section button:hover {
  background: #023e8a;
}

canvas {
  width: 100% !important;
  height: auto !important;   /* biarkan proporsional */
  display: block;
  margin: auto;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 5px;
}


/* Responsif untuk smartphone */
@media (max-width: 1024px) {
  .container {
    width: 98%;
    padding: 18px;
  }
  header h1 {
    font-size: 2rem;       /* lebih besar */
  }
  header p {
    font-size: 2rem;     /* lebih besar */
  }
  .input-section input {
    width: 100%;
    font-size: 2rem;     /* font input besar */
    padding: 14px 16px;    /* lebih tinggi */
  }
  .input-section button,
  .chart-section button {
    font-size: 2rem;     /* font tombol besar */
    padding: 16px 22px;    /* lebih empuk ditekan */
  }
  .chart-section h2 {
    font-size: 2rem;     /* judul chart besar */
  }
  
}
