/* ============================================================
   BanaoCV — templates.css
   Complete realistic resume template previews
   ============================================================ */

/* ── Base ── */
.tpl-preview {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Lines base */
.l { border-radius: 3px; margin-bottom: 4px; flex-shrink: 0; }
.lf { width: 100%; }
.lm { width: 78%; }
.ls { width: 55%; }
.lx { width: 38%; }
.lt { height: 6px; background: rgba(255,255,255,0.85); }
.ld { height: 4px; background: rgba(255,255,255,0.35); }
.lb { height: 4px; background: #e2e8f0; }
.ldb { height: 3px; background: rgba(255,255,255,0.08); }

/* ════════════════════════════════════
   1. CLEAN FRESHER — Blue header
════════════════════════════════════ */
.t-clean {
  background: #fff;
  font-family: sans-serif;
}
.t-clean .hd {
  background: linear-gradient(135deg,#1B3A6B,#2a5298);
  padding: 12px 14px 10px;
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.t-clean .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 8px; font-weight: 800; flex-shrink: 0;
}
.t-clean .ct {
  display: flex; gap: 5px; padding: 5px 14px;
  border-bottom: 1px solid #e8eef8; flex-shrink: 0;
}
.t-clean .bd { padding: 8px 14px; flex: 1; display: flex; flex-direction: column; }
.t-clean .st {
  height: 5px; width: 45px; background: #1B3A6B;
  border-radius: 2px; margin: 7px 0 5px; flex-shrink: 0;
}
.t-clean .st:first-child { margin-top: 0; }
.t-clean .sk { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.t-clean .sk span {
  background: #e8eef8; color: #1B3A6B;
  padding: 2px 5px; border-radius: 8px;
  font-size: 5.5px; font-weight: 700;
}
.t-clean .sp { flex: 1; }

/* ════════════════════════════════════
   2. DARK PRO — Dark navy gold
════════════════════════════════════ */
.t-dark {
  background: linear-gradient(160deg,#0f172a,#1e3a5f);
  padding: 13px;
}
.t-dark .nm { height: 9px; width: 95px; background: #F5A623; border-radius: 3px; margin-bottom: 4px; }
.t-dark .rl { height: 5px; width: 65px; background: rgba(245,166,35,0.45); border-radius: 2px; margin-bottom: 5px; }
.t-dark .tgs { display: flex; gap: 3px; margin-bottom: 8px; }
.t-dark .tg {
  background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.3);
  color: #F5A623; font-size: 5px; font-weight: 700; padding: 2px 5px; border-radius: 3px;
}
.t-dark .dv { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 7px; }
.t-dark .st { height: 4px; width: 42px; background: rgba(245,166,35,0.5); border-radius: 2px; margin: 6px 0 4px; }
.t-dark .st:first-of-type { margin-top: 0; }
.t-dark .sk { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.t-dark .sk span {
  background: rgba(88,166,255,0.15); color: #58a6ff;
  font-size: 5px; font-weight: 700; padding: 2px 5px; border-radius: 3px;
  border: 1px solid rgba(88,166,255,0.25);
}

/* ════════════════════════════════════
   3. CREATIVE SPLIT — Gold sidebar
════════════════════════════════════ */
.t-split {
  background: #fff;
  flex-direction: row !important;
}
.t-split .sb {
  width: 38%; background: linear-gradient(180deg,#F5A623,#c8841a);
  padding: 10px 8px; display: flex; flex-direction: column; gap: 4px;
}
.t-split .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 800; margin: 0 auto 5px;
}
.t-split .sl { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.65); margin-bottom: 3px; }
.t-split .sl.w8 { width: 85%; }
.t-split .sl.w6 { width: 65%; }
.t-split .sdv { height: 1px; background: rgba(255,255,255,0.2); margin: 4px 0; }
.t-split .mn { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; }
.t-split .st { height: 5px; width: 48px; background: #1B3A6B; border-radius: 2px; margin: 6px 0 4px; }
.t-split .st:first-child { margin-top: 0; }
.t-split .sp { flex: 1; }

/* ════════════════════════════════════
   4. GOVT FORMAL — Traditional
════════════════════════════════════ */
.t-govt {
  background: #fff;
  padding: 8px;
}
.t-govt .bx {
  border: 2px solid #1B3A6B; border-radius: 3px;
  padding: 8px; height: 100%; display: flex; flex-direction: column;
}
.t-govt .ctr {
  text-align: center; border-bottom: 2px solid #1B3A6B;
  padding-bottom: 6px; margin-bottom: 6px;
}
.t-govt .gn { height: 8px; background: #1B3A6B; border-radius: 2px; margin: 0 auto 3px; }
.t-govt .gn.w8 { width: 80%; }
.t-govt .gn.w6 { width: 60%; background: #64748b; }
.t-govt .gn.w7 { width: 70%; background: #94a3b8; height: 5px; }
.t-govt .rw { display: flex; gap: 6px; align-items: flex-start; }
.t-govt .ph {
  width: 28px; height: 36px; background: #e2e8f0;
  border: 1px solid #cbd5e1; border-radius: 2px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: #94a3b8;
}
.t-govt .st { height: 4px; width: 45px; background: #1B3A6B; border-radius: 2px; margin: 5px 0 4px; }
.t-govt .sp { flex: 1; }

/* ════════════════════════════════════
   5. TECH DARK — GitHub style
════════════════════════════════════ */
.t-tech {
  background: #0d1117;
  padding: 12px;
}
.t-tech .tp { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 7px; }
.t-tech .nm { height: 8px; width: 88px; background: #58a6ff; border-radius: 2px; margin-bottom: 4px; }
.t-tech .rl { height: 5px; width: 62px; background: rgba(88,166,255,0.4); border-radius: 2px; }
.t-tech .avc {
  width: 26px; height: 26px; border-radius: 50%;
  background: #21262d; border: 2px solid #30363d;
  display: flex; align-items: center; justify-content: center;
  color: #58a6ff; font-size: 6px; font-weight: 800;
}
.t-tech .cps { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 6px; }
.t-tech .cp {
  font-size: 5px; font-weight: 700; padding: 2px 5px;
  border-radius: 3px; border: 1px solid #30363d; background: #21262d;
}
.t-tech .cp.b { color: #58a6ff; }
.t-tech .cp.g { color: #3fb950; }
.t-tech .cp.p { color: #d2a8ff; }
.t-tech .cp.o { color: #ffa657; }
.t-tech .cp.y { color: #e3b341; }
.t-tech .dv { height: 1px; background: #21262d; margin-bottom: 6px; }
.t-tech .st { height: 4px; width: 42px; background: #21262d; border-radius: 2px; margin: 5px 0 4px; }
.t-tech .sp { flex: 1; }

/* ════════════════════════════════════
   6. GOLDEN LINE — Warm minimal
════════════════════════════════════ */
.t-gold {
  background: #fffdf7;
  padding: 12px;
}
.t-gold .hr {
  display: flex; gap: 6px; margin-bottom: 9px;
  padding-bottom: 8px; border-bottom: 1px solid #fed7aa;
}
.t-gold .acb { width: 3px; background: #F5A623; border-radius: 2px; flex-shrink: 0; }
.t-gold .hi { flex: 1; }
.t-gold .hn { height: 8px; width: 88px; background: #1B3A6B; border-radius: 2px; margin-bottom: 4px; }
.t-gold .hr2 { height: 5px; width: 62px; background: #F5A623; border-radius: 2px; margin-bottom: 3px; }
.t-gold .hc { height: 4px; width: 78px; background: #cbd5e1; border-radius: 2px; }
.t-gold .sr { display: flex; align-items: center; gap: 4px; margin: 6px 0 4px; }
.t-gold .sb { width: 3px; height: 11px; background: #F5A623; border-radius: 2px; }
.t-gold .st { height: 4px; width: 42px; background: #1B3A6B; border-radius: 2px; }
.t-gold .sp { flex: 1; }

/* ════════════════════════════════════
   7. CORPORATE BLUE — Professional
════════════════════════════════════ */
.t-corp {
  background: #fff;
}
.t-corp .bn {
  background: linear-gradient(90deg,#1B3A6B,#2a5298);
  padding: 12px 14px; flex-shrink: 0;
}
.t-corp .bnn { height: 8px; width: 90px; background: rgba(255,255,255,0.9); border-radius: 2px; margin-bottom: 4px; }
.t-corp .bnr { height: 5px; width: 65px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.t-corp .bd { padding: 8px 12px; flex: 1; display: flex; flex-direction: column; }
.t-corp .sr { display: flex; align-items: center; gap: 4px; margin: 6px 0 4px; }
.t-corp .sl { width: 3px; height: 11px; background: #1B3A6B; border-radius: 2px; }
.t-corp .st { height: 4px; width: 48px; background: #e8eef8; border-radius: 2px; }
.t-corp .sp { flex: 1; }

/* ════════════════════════════════════
   8. MIDNIGHT GOLD — Dark luxury
════════════════════════════════════ */
.t-mid {
  background: linear-gradient(160deg,#1a1a2e,#16213e);
  padding: 12px;
}
.t-mid .tp { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.t-mid .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg,#F5A623,#ffc04d);
  display: flex; align-items: center; justify-content: center;
  color: #1a1a2e; font-size: 8px; font-weight: 800; flex-shrink: 0;
}
.t-mid .nm { height: 8px; width: 85px; background: #F5A623; border-radius: 2px; margin-bottom: 4px; }
.t-mid .rl { height: 5px; width: 60px; background: rgba(245,166,35,0.4); border-radius: 2px; }
.t-mid .dv { height: 1px; background: rgba(245,166,35,0.2); margin-bottom: 7px; }
.t-mid .st { height: 4px; width: 42px; background: rgba(245,166,35,0.5); border-radius: 2px; margin: 5px 0 4px; }
.t-mid .sp { flex: 1; }

/* ════════════════════════════════════
   9. MEDICAL WHITE — Healthcare
════════════════════════════════════ */
.t-med {
  background: #fff;
  padding: 12px;
}
.t-med .tp {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 7px; border-bottom: 2px solid #e0f2fe; margin-bottom: 6px;
  flex-shrink: 0;
}
.t-med .cx {
  width: 26px; height: 26px; background: #0ea5e9; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.t-med .nm { height: 7px; width: 78px; background: #0c4a6e; border-radius: 2px; margin-bottom: 4px; }
.t-med .rl { height: 5px; width: 58px; background: #7dd3fc; border-radius: 2px; }
.t-med .st { height: 4px; width: 42px; background: #bae6fd; border-radius: 2px; margin: 5px 0 4px; }
.t-med .sp { flex: 1; }

/* ════════════════════════════════════
   10. BOLD MODERN — Purple
════════════════════════════════════ */
.t-bold {
  background: #fff;
}
.t-bold .hd {
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  padding: 11px 12px; display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
}
.t-bold .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 7px; font-weight: 800; flex-shrink: 0;
}
.t-bold .nm { height: 8px; width: 78px; background: rgba(255,255,255,0.9); border-radius: 2px; margin-bottom: 3px; }
.t-bold .rl { height: 5px; width: 58px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.t-bold .bd { padding: 8px 11px; flex: 1; display: flex; flex-direction: column; }
.t-bold .cps { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.t-bold .cp { background: #ede9fe; color: #7c3aed; font-size: 5px; font-weight: 700; padding: 2px 5px; border-radius: 8px; }
.t-bold .st { height: 4px; width: 42px; background: #ede9fe; border-left: 3px solid #7c3aed; border-radius: 0 2px 2px 0; margin: 5px 0 4px; padding-left: 2px; }
.t-bold .sp { flex: 1; }

/* ════════════════════════════════════
   11. MINIMAL CLASSIC — Clean B&W
════════════════════════════════════ */
.t-min {
  background: #fff;
  padding: 11px;
}
.t-min .ctr {
  text-align: center; padding-bottom: 7px;
  margin-bottom: 6px; border-bottom: 1px solid #1B3A6B;
  flex-shrink: 0;
}
.t-min .nm { height: 9px; width: 95px; background: #1B3A6B; border-radius: 2px; margin: 0 auto 4px; }
.t-min .rl { height: 5px; width: 68px; background: #94a3b8; border-radius: 2px; margin: 0 auto 3px; }
.t-min .ct { display: flex; gap: 5px; justify-content: center; margin-top: 3px; }
.t-min .ct span { height: 4px; width: 38px; background: #e2e8f0; border-radius: 2px; }
.t-min .dv { height: 1px; background: rgba(27,58,107,0.12); margin: 5px 0; }
.t-min .st { height: 5px; width: 48px; background: #334155; border-radius: 2px; margin: 5px 0 4px; }
.t-min .sp { flex: 1; }

/* ════════════════════════════════════
   12. SAFFRON BOLD — Orange Indian
════════════════════════════════════ */
.t-saff {
  background: #fff8f0;
}
.t-saff .hd {
  background: linear-gradient(135deg,#ea580c,#f97316);
  padding: 11px 12px; display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.t-saff .nm { height: 8px; width: 78px; background: rgba(255,255,255,0.9); border-radius: 2px; margin-bottom: 3px; }
.t-saff .rl { height: 5px; width: 58px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.t-saff .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 7px; font-weight: 800;
}
.t-saff .bd { padding: 8px 11px; flex: 1; display: flex; flex-direction: column; }
.t-saff .st { height: 4px; width: 42px; background: #fed7aa; border-radius: 2px; margin: 5px 0 4px; }
.t-saff .sp { flex: 1; }

/* ════════════════════════════════════
   13. NAVY SIDEBAR — Two column
════════════════════════════════════ */
.t-navy {
  background: #fff;
  flex-direction: row !important;
}
.t-navy .sb {
  width: 35%; background: #1B3A6B;
  padding: 10px 7px; display: flex; flex-direction: column; gap: 4px;
}
.t-navy .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 8px; font-weight: 800; margin: 0 auto 5px;
}
.t-navy .sl { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.5); margin-bottom: 3px; }
.t-navy .sl.w8 { width: 85%; }
.t-navy .sl.w6 { width: 62%; }
.t-navy .sdv { height: 1px; background: rgba(255,255,255,0.15); margin: 4px 0; }
.t-navy .st-s { height: 4px; width: 35px; background: rgba(255,255,255,0.35); border-radius: 2px; margin: 4px 0 3px; }
.t-navy .mn { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; }
.t-navy .st { height: 5px; width: 48px; background: #e8eef8; border-left: 3px solid #1B3A6B; border-radius: 0 2px 2px 0; padding-left: 2px; margin: 5px 0 4px; }
.t-navy .sp { flex: 1; }

/* ════════════════════════════════════
   14. GREEN MINIMAL — Fresh look
════════════════════════════════════ */
.t-grn {
  background: #fff;
  padding: 11px;
}
.t-grn .hd { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 2px solid #16a34a; }
.t-grn .av {
  width: 28px; height: 28px; border-radius: 6px;
  background: #16a34a; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 8px; font-weight: 800; flex-shrink: 0;
}
.t-grn .nm { height: 8px; width: 82px; background: #14532d; border-radius: 2px; margin-bottom: 3px; }
.t-grn .rl { height: 5px; width: 60px; background: #16a34a; border-radius: 2px; }
.t-grn .st { height: 4px; width: 42px; background: #dcfce7; border-left: 3px solid #16a34a; border-radius: 0 2px 2px 0; padding-left: 2px; margin: 5px 0 4px; }
.t-grn .sp { flex: 1; }

/* ════════════════════════════════════
   15. PINK CREATIVE — Bold colors
════════════════════════════════════ */
.t-pink {
  background: #fff0f6;
}
.t-pink .hd {
  background: linear-gradient(135deg,#be185d,#ec4899);
  padding: 11px 12px; flex-shrink: 0;
}
.t-pink .nm { height: 8px; width: 80px; background: rgba(255,255,255,0.9); border-radius: 2px; margin-bottom: 3px; }
.t-pink .rl { height: 5px; width: 60px; background: rgba(255,255,255,0.45); border-radius: 2px; }
.t-pink .bd { padding: 8px 11px; flex: 1; display: flex; flex-direction: column; }
.t-pink .st { height: 4px; width: 42px; background: #fce7f3; border-left: 3px solid #be185d; border-radius: 0 2px 2px 0; padding-left: 2px; margin: 5px 0 4px; }
.t-pink .sp { flex: 1; }

/* ════════════════════════════════════
   16. TEAL MODERN
════════════════════════════════════ */
.t-teal {
  background: #fff;
}
.t-teal .hd {
  background: linear-gradient(135deg,#0f766e,#0d9488);
  padding: 11px 12px; display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.t-teal .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 7px; font-weight: 800; flex-shrink: 0;
}
.t-teal .nm { height: 8px; width: 80px; background: rgba(255,255,255,0.9); border-radius: 2px; margin-bottom: 3px; }
.t-teal .rl { height: 5px; width: 60px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.t-teal .bd { padding: 8px 11px; flex: 1; display: flex; flex-direction: column; }
.t-teal .st { height: 4px; width: 42px; background: #ccfbf1; border-left: 3px solid #0f766e; border-radius: 0 2px 2px 0; padding-left: 2px; margin: 5px 0 4px; }
.t-teal .sp { flex: 1; }

/* ════════════════════════════════════
   GENERIC lines for all templates
════════════════════════════════════ */
.gl { height: 4px; border-radius: 3px; margin-bottom: 3px; flex-shrink: 0; }
.gl.f  { width: 100%; }
.gl.m  { width: 78%; }
.gl.s  { width: 55%; }
.gl.xs { width: 38%; }
.gl.w  { background: rgba(255,255,255,0.75); }
.gl.wd { background: rgba(255,255,255,0.3); }
.gl.dk { background: #e2e8f0; }
.gl.dm { background: rgba(255,255,255,0.07); }

/* ════════════════════════════════════
   TEMPLATE THUMB — Full height fill
════════════════════════════════════ */
.tpl-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
}

.tpl-thumb .tpl-preview,
.tpl-thumb [class^="t-"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Preview modal — full size */
.preview-left-inner .tpl-preview,
.preview-left-inner [class^="t-"] {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
