/* Gaya Asas */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* Container Utama */
.form-container {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  max-width: 500px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.form-container:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tajuk-besar {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #111; /* lebih gelap sikit dari #222 */
  text-align: center;
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: 0; /* ❗️hapuskan jarak huruf tambahan */
  padding: 0;
}

/* Info Bar Tarikh & Masa */
.info-bar {
  background-color: #e8f0fe;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #0d47a1;
  text-align: center;
  margin-bottom: 20px;
  border: 1px dashed #90caf9;
}

/* Label & Input */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

select, input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fdfdfd;
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select:focus, input:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.25);
}

input[readonly] {
  background-color: #f1f1f1;
}

/* Button Submit */
button {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(to right, #2196f3, #1976d2);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

button:hover {
  background: linear-gradient(to right, #1e88e5, #1565c0);
}

button:active {
  transform: scale(0.98);
}

/* Butang Terapung */
#butangLaporan {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(to right, #2196f3, #1976d2);
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#butangLaporan:hover {
  background: linear-gradient(to right, #1e88e5, #1565c0);
  transform: translateY(-2px);
}

.kredit-footer {
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  color: #777;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f6f8fb;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .form-container {
    padding: 20px 20px;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  }

  .tajuk-besar {
    font-size: 20px;
  }

  .info-bar {
    font-size: 14px;
    padding: 10px;
  }

  select, input {
    font-size: 14px;
    padding: 10px;
  }

  button {
    font-size: 15px;
    padding: 12px 0;
  }

  #butangLaporan {
    padding: 10px 16px;
    font-size: 13px;
    bottom: 15px;
    right: 15px;
    gap: 6px;
  }

  .kredit-footer {
    font-size: 13px;
    margin-top: 30px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .tajuk-besar {
    font-size: 18px;
  }

  .info-bar {
    font-size: 13px;
  }

  button {
    font-size: 14px;
  }

  #butangLaporan {
    font-size: 12px;
    padding: 8px 14px;
    bottom: 12px;
    right: 12px;
  }

  .kredit-footer {
    font-size: 12px;
    margin-top: 25px;
  }
}

/* Spinner animasi */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
