body {
  /* font-family: "Roboto", Arial, sans-serif; */
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
  width: 900px; /* A4 width in pixels */
  height: 1169px; /* A4 height in pixels */
  background-color: #f4f4f4; /* Light background for contrast */
  box-sizing: border-box;
  color: #444;
}

#app {
  width: 100%;
  height: 100%;
  padding: 0px;
  background: white; /* White background for the form */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: auto; /* Allow scrolling if content overflows */
}

.form-container {
  width: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid #000;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.header {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}
.header img {
  margin-top: -10px;
}

.logo {
  width: 70%;
  height: auto;
}

.form-details {
  /* background-color: #2e7d32; */
  margin-right: 5px;
  padding-left: 5px;
}

.form-details p {
  margin: 0px;
  color: #444;
  line-height: 1.5;
  font-weight: bold;
  font-size: 12px;
}

.signature-boxes {
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* background-color: greenyellow; */
}

.signature-box {
  text-align: center;
  /* background-color: #333; */
}
.signature-box p {
  /* background-color: #2e7d32; */
  margin: 0px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.box {
  width: 80px;
  height: 30px;
  border: 1px solid #000;
  margin: 0 auto 0px;
  padding-left: 5px;
}
.signature-text {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.comment-section {
  margin-top: 0px;
  line-height: 1.5;
  padding-left: 5px;
}

.comment-section p:last-child {
  margin-top: 5px;
}
.form-container {
  padding: 0px;
  height: 150px;
}

/* Font styles for Amharic text */
@font-face {
  font-family: "Nyala";
  src: url("Nyala.ttf") format("truetype");
}

/* Responsive design */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .form-container {
    width: 100%;
    /* height: 0px; */
  }
}

.form-letter {
  width: 48%; /* Two forms per row */
  margin-bottom: 40px; /* Space between forms */
  padding: 0px;
  border: 1px solid #ccc; /* Border around each form */
  border-radius: 5px; /* Rounded corners for forms */
  background-color: #fff; /* White background for each form */
}

label {
  display: block;
  margin: 10px 0 5px;
}

input[type="text"] {
  width: 100%;
  padding: 10px; /* Increased padding for better touch targets */
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: bold;
  transition: border-color 0.3s; /* Smooth transition for focus */
}

input[type="text"]:focus {
  border-color: #4caf50; /* Green border on focus */
  outline: none; /* Remove default outline */
}

.agenda-line {
  border-bottom: 1px dashed #000; /* Dashed underline for agenda number */
  height: 20px; /* Height for spacing */
  margin-bottom: 15px; /* Space below the line */
}

.checkbox-group {
  margin-bottom: 15px; /* Space below checkbox group */
}

.checkbox-container {
  display: flex; /* Flexbox for side-by-side layout */
  justify-content: space-between; /* Space between checkboxes */
}

.checkbox-container div {
  flex: 1; /* Equal width for each checkbox */
  text-align: center; /* Center align checkbox labels */
}

.signature {
  margin-top: 20px;
}

.signature-line {
  border: 1px solid #000;
  height: 50px;
  margin-top: 5px;
}

button {
  padding: 10px 15px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s; /* Smooth transition for hover */
}

button:hover {
  background-color: #45a049; /* Darker green on hover */
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1700px;
  margin: 0 auto;
}

.excel-upload-section {
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 5px;
  max-width: 600px;
}

.excel-upload-section input[type="file"] {
  margin-right: 10px;
}

.excel-upload-section button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.excel-upload-section button:hover {
  background-color: #45a049;
}

.value {
  font-weight: bold;
  margin-left: 5px;
}

/* Add these new styles for upload instructions */
.upload-instructions {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

.upload-instructions h3 {
  margin-top: 0;
  color: #333;
}

.upload-instructions ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.upload-instructions li {
  padding: 5px 0;
  color: #666;
}

.upload-instructions li::before {
  content: "•";
  color: #4caf50;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Add these styles for validation feedback */
.validation-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.validation-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.validation-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

/* Add these styles for merge fields */
.merge-field {
  color: #000;
  font-size: 16px;
  font-weight: bold;
  padding: 0 0px;
}

.merge-controls {
  background-color: #f5f5f5;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  max-width: 600px;
  margin: 20px auto;
}

.instructions {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.instructions ul {
  list-style-type: none;
  padding-left: 20px;
}

.instructions li {
  margin: 5px 0;
  color: #666;
}

/* A4 page styling */
.page-container {
  width: 50%;
  margin: auto;
}

.a4-page {
  width: 210mm;
  height: 297mm;
  margin: 20px;
  background: white;
  box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
  page-break-after: always;
}

/* Grid layout for forms */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 10mm;
  height: calc(297mm - 20mm);
}

/* Form container sizing */
.form-container {
  /* background-color: #2e7d32; */
  border: 1px solid #000;
  padding: 5mm 0mm;
  font-size: 10pt;
  height: calc(297mm / 2 - 30mm);
  width: calc(210mm / 2 - 15mm);
  overflow: hidden;
}

/* Adjust header size */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.logo {
  width: 70%;
  height: auto;
}

.company-name h1,
.company-name h2 {
  padding: 0px 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-top: -30px;
  text-decoration: underline;
}

/* Print settings */
@media print {
  .merge-controls {
    display: none;
  }

  .a4-page {
    margin: 0;
    box-shadow: none;
  }

  body {
    margin: 0;
    padding: 0;
  }
}
@media print {
  body {
    margin: 0;
  }

  .a4-page {
    width: 210mm;
    height: 297mm;
    page-break-after: always;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5mm;
  }
}

.a4-page {
  position: relative;
}

.page-number {
  position: absolute;
  bottom: 8mm;
  right: 10mm;
  font-size: 10px;
  color: #555;
}

.cut-mark {
  position: absolute;
  width: 10mm;
  height: 10mm;
}

.cut-mark.top-left {
  top: 0;
  left: 0;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.cut-mark.top-right {
  top: 0;
  right: 0;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
}

.cut-mark.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
}

.cut-mark.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
}

@media print {
  body {
    margin: 0;
  }
}
