:root {
  --font-main: 'Plus Jakarta Sans', 'Anek Bangla', system-ui, -apple-system, sans-serif;
  --bg-page: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --emerald: #059669;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg-page);
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================
   ১. প্রিমিয়াম স্টিকি ডার্ক টপ হেডার
   ========================================== */
.admin-top-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.admin-header-inner {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.admin-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.admin-brand-text {
  min-width: 0;
}

.admin-brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-brand-title-row strong {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.admin-pro-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.admin-brand-text small {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-live-site {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 7px 13px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  text-decoration: none;
}
.btn-live-site:hover {
  background: rgba(56, 189, 248, 0.18) !important;
}

/* ==========================================
   ২. কন্টেইনার, কার্ড ও ডেক্সটপ নেভিগেশন
   ========================================== */
.container {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 16px 50px;
}

.admin-nav.desktop-admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.desktop-admin-nav .admin-tab-btn {
  flex: 1;
  font-family: inherit;
  background: transparent;
  color: #475569;
  border: none;
  padding: 11px 12px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.desktop-admin-nav .admin-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.desktop-admin-nav .admin-tab-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.card {
  background: var(--card-bg);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.05);
  margin-bottom: 18px;
  border: 1px solid var(--card-border);
}

.sec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sec-pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 9px;
  border-radius: 99px;
}

h2, h3, h4 {
  margin-top: 0;
  color: var(--text-main);
  font-weight: 800;
}

/* ==========================================
   ৩. রেসপনসিভ গ্রিড ও ইনপুট ফিল্ড
   ========================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.input-group {
  margin-bottom: 4px;
}

label {
  font-weight: 700;
  display: block;
  margin-top: 6px;
  margin-bottom: 5px;
  font-size: 13px;
  color: #334155;
}

input, select, textarea {
  font-family: inherit;
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

/* ==========================================
   ৪. বাটন, ব্যাজ ও AI জেনারেটর বক্স
   ========================================== */
.btn {
  font-family: inherit;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(0.98); }

.btn-green { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.btn-excel { background: linear-gradient(135deg, #107c41 0%, #0b5c30 100%); color: #fff; }
.btn-image { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); }
.btn-outline { background: #f8fafc; color: var(--primary); border: 1.5px solid #bfdbfe; }
.btn-outline:hover { background: #eff6ff; }
.btn-outline.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }

.btn-publish-main {
  width: 100%;
  margin-top: 16px;
  padding: 15px 18px;
  font-size: 15.5px;
  border-radius: 13px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28);
  white-space: normal;
  line-height: 1.4;
}

.math-heal-btn {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fcd34d;
}
.math-heal-btn:hover { background: #fef3c7; }

.export-btn-group, .action-btn-cluster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-switch-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-pdf-generator-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.ai-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #93c5fd;
}

.btn-ai-magic {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
  transition: all 0.2s ease;
}
.btn-ai-magic:disabled { opacity: 0.65; cursor: not-allowed; }

/* ==========================================
   ৫. বেন্টো সামারি, টেবিল ও প্রিভিউ লিস্ট
   ========================================== */
.summary-bento-wrapper {
  margin-bottom: 16px;
}

.bento-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
}
.bento-stat-item small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  display: block;
}
.bento-stat-item h3 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.table-scroll-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.empty-state-box {
  text-align: center;
  padding: 28px 16px;
  color: #64748b;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 8px;
  font-size: 13.5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}
th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }

th {
  background: #f8fafc;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.preview-scroll-box {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.preview-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
}

.tag-badge {
  display: inline-block;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 4px;
  margin-bottom: 4px;
}
.tag-sub { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-chap { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.tag-topic { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.tag-exam { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }

.eval-badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.eval-excellent { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.eval-good { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.eval-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.eval-poor { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.status-box { margin-top: 14px; font-weight: 700; padding: 12px 14px; border-radius: 10px; display: none; }

/* ==========================================
   ৬. মডাল ও পপআপ এডিটর
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 14px;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-sticky-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

/* ডেক্সটপে মোবাইল ডক হাইড */
.admin-mobile-dock {
  display: none;
}

/* ==========================================
   📱 ৭. মাস্টারক্লাস মোবাইল ভিউ (Screen <= 768px)
   ========================================== */
@media (max-width: 768px) {
  .admin-top-header {
    padding: 9px 12px;
  }
  .admin-brand-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .admin-brand-title-row strong {
    font-size: 15.5px;
  }
  .admin-brand-text small, .hide-xs {
    display: none;
  }

  .desktop-admin-nav {
    display: none !important;
  }

  .container {
    margin: 12px auto;
    padding: 0 10px 92px !important;
  }

  .card {
    padding: 15px 13px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .sec-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* মোবাইলে সব মাল্টি-কলাম ইনপুট ১ কলামে (Full-Width) */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .grid-3 > div[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* ৪ কলামের সামারি স্ট্যাটস মোবাইলে ২x২ বেন্টো গ্রিড */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .export-btn-group, .action-btn-cluster, .mode-switch-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    width: 100%;
  }
  .export-btn-group .btn, .action-btn-cluster .btn, .mode-switch-pills .btn {
    width: 100%;
    padding: 9px 8px;
    font-size: 12px;
  }

  .full-mobile-btn, .btn-ai-magic {
    width: 100% !important;
    padding: 13px 14px !important;
    font-size: 13.5px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .ai-pdf-generator-box {
    padding: 14px 12px;
    border-radius: 14px;
  }

  th, td {
    padding: 9px 8px;
    font-size: 12.5px;
  }

  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-content {
    padding: 18px 14px;
    border-radius: 20px 20px 14px 14px;
    max-height: 88vh;
  }

  /* 🚀 মোবাইল ফ্লোটিং বটম ডক */
  .admin-mobile-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(10, 15, 29, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 950;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  }

  .admin-mobile-dock .admin-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .admin-mobile-dock .dock-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .admin-mobile-dock .dock-label {
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  .admin-mobile-dock .admin-tab-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
  }

  .admin-mobile-dock .admin-tab-btn.active .dock-icon {
    transform: scale(1.12);
  }
}
/* ==============================================================
   📱 মাস্টারক্লাস মোবাইল কার্ড লেআউট (Mobile Card View Engine)
   ============================================================== */
@media (max-width: 768px) {
  /* ১. টপ হেডার নো-ক্লিপিং ফিক্স */
  .admin-top-header {
    padding: 8px 10px !important;
  }
  .admin-header-inner {
    gap: 6px !important;
  }
  .admin-brand {
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .admin-brand-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  .admin-brand-title-row {
    gap: 4px !important;
  }
  .admin-brand-title-row strong {
    font-size: 13.5px !important;
    white-space: nowrap !important;
  }
  .admin-pro-badge {
    font-size: 8.5px !important;
    padding: 1px 5px !important;
  }
  .btn-live-site {
    padding: 5px 8px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }

  /* ২. টেবিলকে মোবাইলে আধুনিক কার্ডে রূপান্তর */
  .table-scroll-box {
    overflow-x: visible !important;
  }
  .table-scroll-box table {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .table-scroll-box table thead,
  .table-scroll-box table tr:first-child th {
    display: none !important;
  }
  .table-scroll-box table,
  .table-scroll-box table tbody,
  .table-scroll-box table tr,
  .table-scroll-box table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* প্রতিটি টেবিল রো একটি মার্জিত কার্ড হবে */
  .table-scroll-box table tr {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 13px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  }
  .table-scroll-box table td {
    border: none !important;
    padding: 5px 0 !important;
    text-align: left !important;
  }

  /* ৩. স্ক্রিন ১ ফিক্স: সকল পরীক্ষা নিয়ন্ত্রণ কার্ড */
  .col-exam-id {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 6px !important;
  }
  .col-exam-sched {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    margin: 8px 0 !important;
    font-size: 12.5px !important;
  }
  .col-exam-actions {
    margin-top: 8px !important;
  }
  .m-power-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100% !important;
  }
  .m-power-grid .btn {
    width: 100% !important;
    height: 38px !important;
    font-size: 12.5px !important;
    padding: 0 8px !important;
    white-space: nowrap !important;
  }
  .col-exam-edit {
    border-top: 1px dashed #e2e8f0 !important;
    padding-top: 10px !important;
    margin-top: 8px !important;
  }
  .m-edit-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr 48px !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .m-edit-grid .btn {
    width: 100% !important;
    height: 36px !important;
    padding: 0 6px !important;
  }

  /* ৪. স্ক্রিন ২ ফিক্স: সকল পরীক্ষার্থী ডিরেক্টরি কার্ড */
  .col-user-rank {
    display: inline-block !important;
    width: auto !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }
  .col-user-info {
    border-bottom: 1px dashed #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }
  .m-user-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
  }
  .m-user-stat-item {
    font-size: 12.5px !important;
  }
  .m-user-stat-item small {
    display: block !important;
    color: #64748b !important;
    font-weight: 600 !important;
  }
  .m-user-stat-item strong {
    font-size: 15px !important;
    font-weight: 800 !important;
  }
  .m-user-act-btn {
    width: 100% !important;
    height: 38px !important;
    font-size: 13px !important;
  }

  /* ৫. স্ক্রিন ৩ ফিক্স: প্রশ্নব্যাংক লাইব্রেরি কার্ড ও বাল্ক বার */
  #topicBankBulkToolbar > div:nth-child(2) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  #topicBankBulkToolbar > div:nth-child(2) > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  #createExamFromSelectedQBtn {
    grid-column: span 2 !important;
  }
  .col-tq-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }
  .m-tq-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
  }
  .m-tq-qtext {
    font-size: 15px !important;
    line-height: 1.5 !important;
    display: block !important;
    margin-bottom: 6px !important;
  }
  .m-tq-options {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    font-size: 12px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
  }
  .m-tq-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
    border-top: 1px dashed #e2e8f0 !important;
    padding-top: 10px !important;
  }
  .m-tq-btns .btn {
    width: 100% !important;
    height: 36px !important;
  }
}

/* ==============================================================
   🖥️ পিসি (PC) ভিউ ফুল প্রটেকশন ও 📱 মোবাইল স্মুথ স্ক্রলিং
   ============================================================== */

/* পিসিতে টেবিল এবং বাটন গ্রিডের স্বাভাবিক রূপ */
.power-btn-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}

.table-scroll-box table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* 📱 শুধুমাত্র মোবাইল স্ক্রিনে (Screen <= 768px) প্রযোজ্য */
@media (max-width: 768px) {
  /* টেবিলে যেন কলাম চ্যাপ্টা না হয়, তার জন্য সুন্দর টাচ-স্ক্রল */
  .table-scroll-box {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
  }

  .table-scroll-box table {
    min-width: 760px !important; /* মোবাইলে লেখা ও বাটন ভেঙে যাওয়া ঠেকাবে */
  }

  /* মোবাইলে টপিক বাল্ক টুলবার রেসপনসিভ */
  #topicBankBulkToolbar > div:nth-child(2) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  #topicBankBulkToolbar > div:nth-child(2) > div:nth-child(2) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}
