body {
  font-family: sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

#response {
  display: none;
}

.btn-home {
  margin: 16px;
  width: 200px;
}

.back {
  width: 100px;
  color: #006eff;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}

.back:hover {
  text-decoration: underline;
  color: #0c284f;
}

.amount-form {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 20px;
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

select {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 280px;
}

h1 {
  color: #102e50;
  /* Dark Blue */
  margin-bottom: 20px;
}

#uploadForm {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#fileInput {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #f5c45e;
  /* Yellow */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-copy {
  background-color: #f9f9f9;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
}

.btn-copy:hover {
  background-color: #cca991;
  /* Orange */
}

button:hover {
  background-color: #e78b48;
  /* Orange */
}

#response {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  text-align: left;
}

#response h2 {
  color: #102e50;
  /* Dark Blue */
  margin-top: 0;
  margin-bottom: 10px;
}

.invoice-details {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.invoice-details p {
  margin: 5px 0;
}

.line-items-title {
  color: #e78b48;
  /* Orange */
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
}

.line-item {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.line-item p {
  margin: 0;
  flex: 1 1 100%;
}

.line-item select,
.line-item button {
  flex: 1 1 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

.line-item button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
}

.total-amount {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-weight: bold;
}

pre {
  white-space: pre-wrap;
  /* Since we're now formatting the output */
  word-wrap: break-word;
  padding: 10px;
  background-color: #eee;
  border-radius: 4px;
  overflow-x: auto;
}

.error-message {
  color: #dc3545;
  /* Red */
  font-weight: bold;
}

li {
  list-style-type: none;
  padding: 8px;
  font-size: larger;
}

@media (min-width: 45em) {
  /* ~720px */
  .line-item p {
    flex: 1 1 calc(50% - 8px);
  }

  .container {
    width: 500px;
  }
}

@media (min-width: 60em) {
  /* ~960px */
  .line-item p {
    flex: 1 1 calc(25% - 8px);
  }

  .container {
    width: 700px;
  }
}
