/* Sicha PDF Creator — scoped under #sicha-pdf-creator-root so it never leaks into the
   surrounding WordPress theme (no bare `body`/`main`/`header` tag selectors). */

#sicha-pdf-creator-root{
  --sicha-navy:#1b2a4a;
  --sicha-navy-dark:#12203b;
  --sicha-gold:#c9a24b;
  --sicha-gold-light:#e9d8a6;
  --sicha-paper:#faf8f3;
  --sicha-ink:#1f1f1f;
  --sicha-danger:#a13a3a;
  --sicha-ok:#2f6b3a;

  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg,#0f1b33,#1b2a4a 40%, #24365f);
  color:var(--sicha-ink);
  border-radius:14px;
  overflow:hidden;
}
#sicha-pdf-creator-root *{box-sizing:border-box;}

#sicha-pdf-creator-root .sicha-header{
  padding:22px 28px; background:var(--sicha-navy-dark); color:var(--sicha-gold-light);
  border-bottom:3px solid var(--sicha-gold); display:flex; justify-content:space-between; align-items:center;
}
#sicha-pdf-creator-root .sicha-header h1{ margin:0; font-size:1.35rem; letter-spacing:.3px; font-weight:600;}
#sicha-pdf-creator-root .sicha-header .sub{ font-family: Arial, sans-serif; font-size:.75rem; color:#cbd5e6; margin-top:2px;}

#sicha-pdf-creator-root .sicha-main{ max-width:1180px; margin:0 auto; padding:26px 22px 60px; font-family:Arial, sans-serif;}

#sicha-pdf-creator-root .card{
  background:var(--sicha-paper); border-radius:14px; padding:24px 26px; box-shadow:0 10px 30px rgba(0,0,0,.25);
  margin-bottom:20px; border:1px solid #e3ddcb;
}
#sicha-pdf-creator-root .card h2{ margin-top:0; color:var(--sicha-navy); font-family:Georgia,serif; font-size:1.2rem; border-bottom:2px solid var(--sicha-gold); padding-bottom:8px;}

#sicha-pdf-creator-root textarea#sicha-mainInput{
  width:100%; min-height:340px; padding:14px; font-size:14.5px; line-height:1.5;
  border:1px solid #cfc7ab; border-radius:8px; resize:vertical; font-family: Arial, sans-serif;
  background:#fff;
}
#sicha-pdf-creator-root .row{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-top:14px;}
#sicha-pdf-creator-root button.primary{
  background:var(--sicha-navy); color:#fff; border:none; padding:12px 22px; border-radius:8px;
  font-size:.95rem; cursor:pointer; font-weight:600; letter-spacing:.2px;
}
#sicha-pdf-creator-root button.primary:hover{ background:#243b6b; }
#sicha-pdf-creator-root button.secondary{
  background:#fff; color:var(--sicha-navy); border:1.5px solid var(--sicha-navy); padding:11px 20px; border-radius:8px;
  font-size:.9rem; cursor:pointer; font-weight:600;
}
#sicha-pdf-creator-root button.secondary:hover{ background:#eef1f8; }
#sicha-pdf-creator-root button.danger{ border-color:var(--sicha-danger); color:var(--sicha-danger); }
#sicha-pdf-creator-root button:disabled{ opacity:.5; cursor:not-allowed; }
#sicha-pdf-creator-root label.checkline{ display:flex; align-items:center; gap:8px; font-size:.88rem; color:#333; }
#sicha-pdf-creator-root .field-group{ margin-bottom:18px; }
#sicha-pdf-creator-root .field-group label{ display:flex; justify-content:space-between; font-weight:700; color:var(--sicha-navy); margin-bottom:6px; font-size:.85rem; text-transform:uppercase; letter-spacing:.4px;}
#sicha-pdf-creator-root .field-group textarea, #sicha-pdf-creator-root .field-group input[type=text]{
  width:100%; padding:10px; border:1px solid #cfc7ab; border-radius:6px; font-family:Arial,sans-serif;
  font-size:14px; line-height:1.45;
}
#sicha-pdf-creator-root .field-group .hint{ font-size:.72rem; color:#8a8368; text-transform:none; font-weight:400;}
#sicha-pdf-creator-root .warn-badge{ background:#fff3cd; color:#8a6d1a; border-radius:6px; padding:2px 8px; font-size:.68rem; font-weight:700; text-transform:none;}
#sicha-pdf-creator-root .grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width: 860px){ #sicha-pdf-creator-root .grid-2{ grid-template-columns:1fr; } }
#sicha-pdf-creator-root .banner-msg{ padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:.9rem; }
#sicha-pdf-creator-root .banner-msg.error{ background:#fdeaea; color:var(--sicha-danger); border:1px solid #f2bcbc; }
#sicha-pdf-creator-root .banner-msg.info{ background:#eaf2fd; color:#245a9e; border:1px solid #bcd6f2; }
#sicha-pdf-creator-root .banner-msg.ok{ background:#eafdf0; color:var(--sicha-ok); border:1px solid #bce8c6; }
#sicha-pdf-creator-root .preview-wrap{
  background:#2a2a2a; border-radius:10px; padding:16px; max-height:820px; overflow:auto; text-align:center;
}
#sicha-pdf-creator-root .preview-wrap canvas{ box-shadow:0 6px 18px rgba(0,0,0,.5); margin-bottom:16px; max-width:100%; height:auto; background:#fff; }
#sicha-pdf-creator-root .zoom-row{ display:flex; gap:10px; align-items:center; margin-bottom:10px; justify-content:center; }
#sicha-pdf-creator-root .zoom-row button{ background:#444; color:#fff; border:none; border-radius:6px; width:32px;height:32px; cursor:pointer; font-size:1rem;}
#sicha-pdf-creator-root .zoom-row span{ color:#ddd; font-size:.85rem; min-width:50px; text-align:center;}
#sicha-pdf-creator-root .icon-btn{
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:9px; border:none;
  cursor:pointer; font-weight:600; font-size:.88rem; letter-spacing:.2px; font-family:Arial,sans-serif;
  box-shadow:0 2px 6px rgba(0,0,0,.3); transition:transform .15s ease, box-shadow .15s ease;
}
#sicha-pdf-creator-root .icon-btn:hover{ transform:translateY(-1px); box-shadow:0 5px 12px rgba(0,0,0,.4); }
#sicha-pdf-creator-root .icon-btn:active{ transform:translateY(0); }
#sicha-pdf-creator-root .icon-btn svg{ flex-shrink:0; }
#sicha-pdf-creator-root .icon-btn.download{ background:linear-gradient(135deg,#2a4172,#1b2a4a); color:#fff; }
#sicha-pdf-creator-root .icon-btn.print{ background:linear-gradient(135deg,#4a4a4a,#2c2c2c); color:#fff; }
#sicha-pdf-creator-root .steps{ display:flex; gap:8px; margin-bottom:18px; font-size:.8rem; color:#cbd5e6; font-family:Arial,sans-serif; }
#sicha-pdf-creator-root .steps span{ padding:4px 10px; border-radius:14px; background:rgba(255,255,255,.08); }
#sicha-pdf-creator-root .steps span.active{ background:var(--sicha-gold); color:#1b2a4a; font-weight:700; }
#sicha-pdf-creator-root .sicha-footer{ text-align:center; color:#9fb0cc; font-size:.72rem; padding:20px; font-family:Arial,sans-serif;}
#sicha-pdf-creator-root .spinner{
  display:inline-block; width:16px;height:16px;border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff; border-radius:50%; animation:sicha-spin .8s linear infinite; vertical-align:middle; margin-right:8px;
}
@keyframes sicha-spin{ to{ transform:rotate(360deg);} }
#sicha-pdf-creator-root .hidden{ display:none !important; }
#sicha-pdf-creator-root .rtl-hint{ direction:rtl; text-align:right; }
#sicha-pdf-creator-root select{
  padding:9px 12px; border:1px solid #cfc7ab; border-radius:6px; font-family:Arial,sans-serif;
  font-size:.88rem; background:#fff; color:#333;
}
