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

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

.ib {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--tx);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.ib:active {
  transform: scale(0.94);
}

.ib.act {
  color: var(--ac);
  background: rgba(200, 16, 46, 0.15);
}

.ib:disabled {
  opacity: 0.3;
  pointer-events: none;
}

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

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

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

.dl {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  margin-left: 4px;
  border: 0;
  border-radius: 18px;
  background: var(--ac);
  color: #fff;
  font: 600 13px var(--ui);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
  transition: all 0.18s ease;
}

.dl:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.dl:active {
  transform: scale(0.96);
}

.dl:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ নিচের মূল ৫টি অপশন বিশিষ্ট ন্যাভিগেশন বার ============ */
.bottom-nav {
  display: flex;
  align-items: stretch;
  height: 60px;
  background: var(--bar);
  border-top: 1px solid var(--ln);
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex: none;
  z-index: 30;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--mu);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab .ic {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-tab span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--tx);
}

.nav-tab.on {
  color: #fff;
}

.nav-tab.on .ic {
  color: var(--ac);
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(200, 16, 46, 0.45));
}

.nav-tab.on span {
  font-weight: 700;
  color: var(--tx);
}

.nav-tab.on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ac);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.6);
}

/* ============ সাব-টুলবার রিবন (Tool Ribbon - 27 Text, 6 Elements, 6 BG, Project) ============ */
.tool-ribbon {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 58px;
  padding: 0 8px;
  background: rgba(14, 18, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: none;
}

.tool-ribbon::-webkit-scrollbar {
  display: none;
}

.tool-btn {
  flex: 0 0 auto;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--mu);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-btn .ic {
  width: 19px;
  height: 19px;
}

.tool-btn span {
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.tool-btn:hover {
  background: var(--soft);
  color: var(--tx);
}

.tool-btn.on {
  background: rgba(200, 16, 46, 0.16);
  border-color: rgba(200, 16, 46, 0.4);
  color: #fff;
}

.tool-btn.on .ic {
  color: var(--ac);
}

.tool-btn.on span {
  color: #fff;
  font-weight: 600;
}
