body {
  background-color: #f4f6f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Sol Panel Ayarları */

.input-panel {
  height: 100vh;
  overflow-y: auto;
}

/* Sağ Panel (Önizleme Alanı) */

.preview-wrapper {
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* A4 Kağıt Tasarımı */

.a4-page {
  width: 210mm;
  height: 296.8mm;
  /* Güvenlik payı ile yükseklik */
  /* GÜNCELLEME: Kenar boşlukları daraltıldı (20mm -> 12mm) */
  padding: 12mm;
  margin: 0 auto 10mm auto;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  font-family: "Times New Roman", Times, serif;
  color: #000;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Tablo Stilleri */

.header-table,
.info-table {
  width: 100%;
  border-collapse: collapse;
  /* Çizgileri birleştirir */
  margin-bottom: 15px;
  /* Dış çerçeve */
  border: 1px solid #000;
}

.header-table td,
.info-table td {
  /* GÜNCELLEME: Çizgi kalınlıkları eşitlendi */
  border: 1px solid #000 !important;
  padding: 5px;
  vertical-align: middle;
  font-size: 11pt;
}

/* Tipografi */

h1 {
  font-size: 14pt;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

h2 {
  font-size: 12pt;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

h3 {
  font-size: 11pt;
  font-weight: bold;
  margin: 10px 0 5px 0;
  border-bottom: 1px solid #000;
  display: inline-block;
}

ul,
ol {
  margin: 5px 0;
  padding-left: 25px;
  font-size: 10pt;
  line-height: 1.4;
}

li {
  margin-bottom: 3px;
}

/* İmza Alanı */

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.signature-box {
  text-align: center;
  margin-bottom: 20px;
  font-size: 10pt;
  /* İmza kutuları taşarsa diye güvenlik */
  overflow: hidden;
}

/* Logo */

.logo-img {
  max-height: 60px;
  display: block;
  margin: 0 auto;
}

/* Kayıt Göstergesi */

.save-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

.save-indicator.show {
  opacity: 1;
}
