body {
  font-family: "Montserrat", sans-serif;
  background-color: #f4f7f9;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  width: 95%;
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

h1 {
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

h2 {
  color: #ff7f00;
  border-bottom: 2px solid #eeeeee;
  padding-bottom: 10px;
  margin-top: 25px;
  font-weight: 600;
  font-size: 1.3em;
}

label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #003366;
  font-weight: 600;
  font-size: 0.95em;
}

input[type="number"],
input[type="text"],
select,
.custom-file-upload {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccddee;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1em;
}

input[readonly] {
  background-color: #f0f8ff;
  font-weight: 700;
  color: #003366;
}

button[type="button"],
button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

button[type="button"] {
  background-color: #0056b3;
  color: white;
  margin-bottom: 20px;
}
button[type="button"]:hover {
  background-color: #003366;
}

button[type="submit"] {
  background-color: #ff7f00;
  color: white;
  font-size: 1.1em;
  margin-top: 25px;
}
button[type="submit"]:hover {
  background-color: #e66a00;
}

.scan-btn {
  width: 100%;
  background-color: #0056b3;
  color: white;
  margin-bottom: 20px;
}
.scan-btn:hover {
  background-color: #003366;
}

.action-btn {
  width: 48%;
  display: inline-block;
  font-size: 1em;
  margin-top: 25px;
}
#submit-start {
  background-color: #00a050;
  color: white;
  margin-right: 4%;
}
#submit-end {
  background-color: #ff7f00;
  color: white;
}

#km_start_section,
#km_end_section,
#driver_start,
#driver_end {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.hidden {
  display: none !important;
}

input[type="file"] {
  display: none;
}
.custom-file-upload {
  display: inline-block;
  background-color: #f0f0f0;
  color: #003366;
  text-align: center;
  cursor: pointer;
  border: 2px dashed #ccddee;
}
.custom-file-upload:hover {
  background-color: #e9e9e9;
}

@media (max-width: 400px) {
  .container {
    padding: 15px;
  }
  button[type="submit"] {
    font-size: 1em;
  }
}
