/* ========================================================
   BANK STATEMENT GENERATOR - GLOBAL STYLES
   ======================================================== */

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  margin: 0;
  padding: 0;
}

.ui-font {
  font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Strict A4 Dimensions (210mm x 297mm) */
.a4-page {
  width: 210mm;
  height: 297mm;
  max-height: 297mm;
  min-height: 297mm;
  margin: 0 auto 25px auto;
  background: #ffffff;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Watermark */
.watermark-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 400;
  color: rgba(160, 172, 188, 0.28);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: 0.5px;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

/* ========================================================
   DESIGN 1: EASTERN BANK PLC (EBL) STYLES
   ======================================================== */
.statement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.statement-table th {
  font-size: 10.5px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  padding: 6px 3px;
  border: none !important;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.statement-table td {
  font-size: 9.5px;
  color: #000000;
  padding: 3.5px 3px;
  vertical-align: top;
  border: none !important;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.30;
  word-break: break-word;
}

.num-col {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.qr-box {
  display: inline-block;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.qr-box img, .qr-box canvas {
  display: block;
  margin: 0 auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ========================================================
   DESIGN 2: DUTCH-BANGLA BANK PLC (DBBL) STYLES
   ======================================================== */
.dbbl-font {
  font-family: 'Courier New', Courier, monospace;
}

.dbbl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Courier New', Courier, monospace;
}

.dbbl-table th {
  background-color: #e2eef4 !important;
  color: #000000 !important;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 4px;
  border: none !important;
  text-transform: uppercase;
  font-family: 'Courier New', Courier, monospace;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.dbbl-table td {
  color: #000000;
  font-size: 9.5px;
  padding: 3px 4px;
  vertical-align: top;
  border: none !important;
  line-height: 1.25;
  font-family: 'Courier New', Courier, monospace;
}

/* ========================================================
   PRINT SETUP
   ======================================================== */
@media print {
  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .no-print {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #formView {
    display: none !important;
  }

  #statementView, #pagesContainer {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .a4-page {
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: always !important;
    page-break-before: auto !important;
    break-after: page !important;
    break-inside: avoid !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-sizing: border-box !important;
  }

  .a4-page:first-child {
    page-break-before: avoid !important;
    break-before: avoid !important;
  }

  .a4-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  @page {
    size: A4 portrait;
    margin: 0 !important;
  }
}

/* PIN Lock Screen Animations */
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.animate-shake {
  animation: pinShake 0.4s ease-in-out;
}
