/* ============ টুলবার ও নেভিগেশন স্টাইল (toolbar.css) ============ */

/* উপরের নেভিগেশন (Top Header) */
.top {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 0 6px;
  background: var(--bar);
  border-bottom: 1px solid var(--ln);
  flex: none;
}

.ib {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--tx);
  border-radius: 12px;
}

.ib:active {
  background: var(--soft);
}

.ib:disabled {
  opacity: .3;
}

.ttl {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 0 6px;
}

.ttl b {
  font: 700 15px 'Noto Serif Bengali', serif;
  white-space: nowrap;
}

.ttl small {
  color: var(--mu);
  font-size: 11.5px;
  white-space: nowrap;
}

.dl {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  margin-left: 4px;
  border: 0;
  border-radius: 19px;
  background: var(--ac);
  color: #fff;
  font: 600 14px var(--ui);
}

.dl:disabled {
  opacity: .6;
}

/* নিচের টুলবার (Bottom Navigation Bar) */
.bar {
  display: flex;
  flex: none;
  background: var(--bar);
  border-top: 1px solid var(--ln);
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.bar::-webkit-scrollbar {
  display: none;
}

.tb {
  flex: 0 0 auto;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 12px 6px;
  border: 0;
  background: none;
  color: var(--mu);
  font: 500 10px/1.2 var(--ui);
  position: relative;
  border-radius: 0;
}

.tb span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb.on {
  color: #fff;
}

.tb.on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ac);
}

/* নির্বাচিত উপাদানের বার (Selection Action Bar) */
.selbar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  padding: 6px 10px;
  background: var(--sh);
  border-top: 1px solid var(--ln);
}

.selbar b {
  font-size: 12.5px;
  font-weight: 600;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--soft);
}

.selbar input[type=range] {
  flex: 1 1 110px;
  width: auto;
  min-width: 90px;
}

.selbar output {
  float: none;
  min-width: 28px;
  text-align: right;
  font-size: 13px;
}

.ib.sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ib.sm .ic {
  width: 19px;
  height: 19px;
}

.ib.act {
  color: #f5b301;
}
