/* ========== Reset dasar ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== Header ========== */
header {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

/* ========== Main container ========== */
main {
  flex: 1;
  width: 90%;               /* ✅ lebar form besar di desktop */
  max-width: 1200px;
  margin: 20px auto;
}

/* ========== Form container ========== */
.form-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: #fefefe;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #007bff;
}

/* ========== Tombol ========== */
button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

/* ========== Progress bar ========== */
.progress-container {
  background-color: #e0e0e0;
  border-radius: 4px;
  height: 24px;
  margin-top: 20px;
  overflow: hidden;
}

#progress-bar {
  background-color: #007bff;
  color: #fff;
  height: 100%;
  width: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 0.3s ease;
}

/* ========== Output hasil ========== */
#hasil {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  min-height: 250px;
  resize: vertical;
}

/* ========== Footer ========== */
footer {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
}

/* ✅ Responsif hanya untuk HP */
@media (max-width: 600px) {
  main {
    width: 95%;
  }

  button {
    width: 100%;
  }

  header h1 {
    font-size: 1.3rem;
  }

  #hasil {
    min-height: 200px;
  }
}
