body {
  font-family: 'Segoe UI', sans-serif;
  background: #f1f1f1;
  margin: 0;
  padding: 0;
}

.container {
  background: #fff;
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 0 10px #ccc;
  border-radius: 8px;
}

h1 {
  text-align: center;
  color: #1b2a49;
  margin-bottom: 20px;
}

.details label {
  display: block;
  margin: 10px 0 5px;
}

.details input {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#invoiceTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#invoiceTable th,
#invoiceTable td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

button {
  margin: 10px 5px 20px 0;
  padding: 8px 12px;
  background-color: #1b2a49;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #3e4975;
}

.totals {
  margin-top: 20px;
  font-size: 15px;
}

.signature {
  text-align: right;
  margin-top: 50px;
  font-style: italic;
  color: #333;
}

/* Preview Section Styling */

#previewContent {
  font-family: 'Segoe UI', sans-serif;
  padding: 30px;
  background: #fff;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  border-radius: 8px;
}

.preview-header {
  background-color: #1b2a49;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.preview-header h2 {
  margin: 0;
}

.address-blocks {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.address-block p {
  margin: 2px 0;
  font-size: 14px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.preview-table th,
.preview-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}

.preview-summary {
  float: right;
  margin-top: 20px;
  width: 300px;
}

.preview-summary td {
  padding: 6px 10px;
  font-size: 14px;
}

.preview-notes {
  margin-top: 50px;
  font-size: 13px;
}

.preview-footer {
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
  color: #1b2a49;
}
