:root {
  --th-green: #0b5d3b;
  --th-green-dark: #073d27;
  --th-gold: #c79a2b;
  --th-red: #a51c1c;
  --th-bg: #f6f7f5;
  --th-ink: #1f2a24;
}

body {
  font-family: 'Noto Sans Bengali', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--th-bg);
  color: var(--th-ink);
}

a { text-decoration: none; }

/* ---------- টপ ব্র্যান্ড বার ---------- */
.th-topbar {
  background: var(--th-green-dark);
  color: #eaf3ee;
  font-size: 0.85rem;
  padding: 6px 0;
}

.th-navbar {
  background: #ffffff;
  border-bottom: 3px solid var(--th-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.th-navbar .brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.th-navbar .brand-title {
  color: var(--th-green-dark);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.th-navbar .brand-sub {
  color: #6b7a71;
  font-size: 0.8rem;
}

/* ---------- হিরো সেকশন ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--th-green-dark), var(--th-green) 70%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--th-gold), var(--th-red));
}

.hero-section .logo-badge {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  border: 4px solid var(--th-gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  margin-bottom: 18px;
}

.hero-section .memo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 4px 16px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.apply-btn {
  font-size: 1.1rem;
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 700;
  background: var(--th-gold);
  color: #1f1400;
  border: none;
}
.apply-btn:hover { background: #b3891f; color: #1f1400; }

/* ---------- কার্ড ও সেকশন ---------- */
.info-card {
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid var(--th-green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  padding: 28px;
  height: 100%;
}

.section-title {
  color: var(--th-green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--th-gold);
  display: inline-block;
  padding-bottom: 6px;
}

/* ---------- আবেদন ফরম ---------- */
.letterhead {
  background: #fff;
  border: 1px solid #e1e5e2;
  border-top: 6px solid var(--th-green);
  border-radius: 10px;
  padding: 20px 28px;
  margin-bottom: 25px;
}
.letterhead .lh-logo { width: 64px; height: 64px; object-fit: contain; }
.letterhead .lh-org { color: var(--th-green-dark); font-weight: 800; font-size: 1.4rem; margin-bottom: 0; }
.letterhead .lh-sub { color: #555; font-size: 0.92rem; }
.letterhead .lh-memo { font-size: 0.82rem; color: #777; border-top: 1px dashed #ccc; margin-top: 10px; padding-top: 8px; }

.form-container {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin: 10px auto 40px;
}

.form-section-title {
  color: #fff;
  background: var(--th-green);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 16px;
  display: inline-block;
}

.form-label { font-weight: 600; color: #33403a; }
.form-control:focus, .form-select:focus {
  border-color: var(--th-green);
  box-shadow: 0 0 0 0.2rem rgba(11,93,59,0.15);
}

.photo-preview-box {
  width: 130px;
  height: 150px;
  border: 2px dashed #b9c3bd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafbfa;
  font-size: 0.78rem;
  color: #8a938e;
  text-align: center;
}
.photo-preview-box img { width: 100%; height: 100%; object-fit: cover; }

.btn-th-primary {
  background: var(--th-green);
  border-color: var(--th-green);
  color: #fff;
  font-weight: 700;
}
.btn-th-primary:hover { background: var(--th-green-dark); border-color: var(--th-green-dark); color: #fff; }

/* ---------- আবেদন সাবমিট কনফার্মেশন পেইজ ---------- */
.success-hero {
  min-height: calc(100vh - 150px);
  padding: 50px 15px;
  background: linear-gradient(135deg, var(--th-green-dark), var(--th-green) 70%);
}

.success-card {
  background: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
}

.success-check-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--th-green), var(--th-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 8px 22px rgba(11,93,59,0.35);
  animation: th-pop 0.45s ease-out;
}

@keyframes th-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.app-no-box {
  display: inline-block;
  background: var(--th-bg);
  border: 2px dashed var(--th-gold);
  border-radius: 12px;
  padding: 14px 32px;
}

.app-no-label {
  font-size: 0.85rem;
  color: #6b7a71;
  margin-bottom: 4px;
}

.app-no-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--th-green-dark);
}

/* ---------- স্ট্যাটাস ব্যাজ ---------- */
.badge-status-pending    { background:#e9ecef; color:#495057; }
.badge-status-selected   { background:#d4edda; color:#155724; }
.badge-status-waitlisted { background:#fff3cd; color:#856404; }
.badge-status-absent     { background:#f8d7da; color:#721c24; }

/* ---------- অ্যাডমিন ---------- */
.admin-sidebar-card .card-header { font-weight: 700; }
.table thead.table-th { background: var(--th-green-dark); color: #fff; }
.table-th-row-selected { background-color: #eaf3ee !important; }

/* ---------- প্রিন্ট / পিডিএফ শীট (letterhead pad) ---------- */
.pad-sheet {
  background: #fff;
  width: 190mm;
  min-height: 270mm;
  margin: 12px auto;
  padding: 14mm 14mm 10mm;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  page-break-after: always;
  position: relative;
}
.pad-sheet:last-child { page-break-after: auto; }

/* পেইজের মাঝখানে হালকা লোগো জলছাপ */
.pad-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100mm;
  height: 100mm;
  object-fit: contain;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
/* মূল কনটেন্ট সবসময় জলছাপের উপরে থাকবে */
.pad-content {
  position: relative;
  z-index: 1;
}

/* ---------- Watermark / Table Transparent Fix ---------- */
/* এই কোডটি বুটস্ট্র্যাপের ডিফল্ট সাদা ব্যাকগ্রাউন্ড সরিয়ে জলছাপ স্পষ্ট করবে */
.pad-content table, 
.pad-content .table, 
.pad-content table tr, 
.pad-content table th, 
.pad-content table td {
  background-color: transparent !important;
  box-shadow: none !important;
}

.pad-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 3px double var(--th-green-dark);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.pad-header img.pad-logo { width: 70px; height: 70px; object-fit: contain; }
.pad-header .pad-org-name { color: var(--th-green-dark); font-weight: 800; font-size: 1.5rem; margin: 0; }
.pad-header .pad-org-sub { font-size: 0.95rem; color: #444; margin: 0; }
.pad-header .pad-memo { margin-left: auto; text-align: right; font-size: 0.8rem; color: #666; }

.pad-photo {
  width: 110px; height: 130px;
  object-fit: cover;
  border: 1px solid #ccc;
  float: right;
  margin-left: 16px;
}

.pad-eval-box {
  margin-top: 26px;
  border: 1.5px solid var(--th-green-dark);
  border-radius: 6px;
  padding: 14px 18px;
}
.pad-eval-box h6 { color: var(--th-green-dark); font-weight: 800; margin-bottom: 10px; }
.eval-option { display:inline-flex; align-items:center; gap:8px; margin-right: 28px; font-size: 1rem; }
.eval-box-mark {
  display:inline-block; width:20px; height:20px; border:2px solid #333; border-radius:3px;
  text-align:center; line-height:16px; font-weight:900;
}
.eval-active .eval-box-mark { background: var(--th-green); border-color: var(--th-green-dark); color:#fff; }
.eval-active { font-weight: 800; }

.pad-sign-row { display:flex; justify-content:space-between; margin-top:60px; }
.pad-sign-row .sign-box { text-align:center; width:40%; border-top:1px solid #333; padding-top:6px; font-size:0.9rem; }

@media print {
  body { background: #fff; }
  .no-print { display:none !important; }
  .pad-sheet { box-shadow:none; margin:0; width:auto; min-height:auto; }
}