/* ============================================================
   BabyPlus POS — settings-ui.css  (v1.0)
   শুধুমাত্র সেটিংস ট্যাবের (#tab-settings) নতুন কালারফুল ডিজাইন।

   ⚠️ গুরুত্বপূর্ণ:
   - এই ফাইলটা সম্পূর্ণ "additive" — style.css বা mobile-ui.css এর
     কোনো লাইন মোছা বা পরিবর্তন করা হয়নি।
   - style.css ও mobile-ui.css এর *পরে* লোড করতে হবে।
   - শুধু #tab-settings এর ভেতরের এলিমেন্ট স্টাইল করা হয়েছে,
     বাকি কোনো ট্যাবে প্রভাব পড়বে না।
   ============================================================ */

/* ---------- ক্যাটাগরি ট্যাব বার ---------- */
#tab-settings .bp-set-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}
#tab-settings .bp-set-tabs::-webkit-scrollbar { display: none; }
#tab-settings .bp-set-tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid #E8ECF4;
  background: #fff;
  color: #64748B;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
#tab-settings .bp-set-tab:hover { background: #F7F9FC; }
#tab-settings .bp-set-tab.bp-active {
  background: var(--tab-color, #2563EB);
  border-color: var(--tab-color, #2563EB);
  color: #fff;
}

/* ---------- কার্ড: রঙিন টপ বর্ডার + আইকন ব্যাজ ---------- */
#tab-settings .card {
  border-top: 3px solid var(--cat-color, transparent) !important;
  position: relative;
}
#tab-settings .card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
}
#tab-settings .card h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
  background: var(--cat-bg, #F1F4FA);
  flex: none;
}

/* ফিল্টার করা (অন্য ক্যাটাগরির) কার্ড লুকানো */
#tab-settings .card[data-cat] { display: none; }
#tab-settings .card[data-cat].bp-cat-visible { display: block; }

/* ---------- মোবাইল: কার্ড অ্যাকর্ডিয়ন ---------- */
@media (max-width: 900px) {
  #tab-settings .card h2 {
    cursor: pointer;
    justify-content: space-between;
  }
  #tab-settings .card h2::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2px solid #94A3B8;
    border-bottom: 2px solid #94A3B8;
    transform: rotate(45deg);
    transition: transform .2s;
    flex: none;
    margin-left: auto;
  }
  #tab-settings .card.bp-open h2::after { transform: rotate(-135deg); }

  #tab-settings .bp-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  #tab-settings .card.bp-open .bp-card-body {
    max-height: 3000px;
  }
  #tab-settings .bp-card-body { padding-top: 14px; }
}
