/* Navigation Toolbar styles */
.navigation-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 10px;
}

.toolbar-container {
  margin: 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
}

/* 10x Developer Logo */
.nav-logo {
  text-decoration: none;
  min-width: 60px;
  flex-shrink: 0;
  padding: 0 20px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-logo .logo-10x {
  height: 28px;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-items {
  display: flex;
  gap: 0;
  align-items: center;
  direction: rtl;
  justify-content: center;
  width: 100%;
  padding: 0 40px;
  border-bottom: 1px solid #e8e8e8;
}

.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0px 20px;
  text-decoration: none;
  color: #2C2C2C;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
  min-height: 50px;
  gap: 6px;
}

.nav-item.has-icon {
  gap: 2px;
}

.nav-item:hover {
  background: rgba(0, 113, 227, 0.1);
  /* transform: translateY(-2px); */
}

.nav-item.active {
  color: #0071E3;
  background: #e0ebff;
  min-width: 100px;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: #0071E3;
  border-radius: 2px 2px 0 0;
}

.nav-icon {
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
  transition: filter 0.3s ease;
}

img.icon-home {
    width: 21px;
    height: 21px;
    position: relative;
    top: 3px;
}

.nav-item:hover .nav-icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(206deg) brightness(97%) contrast(97%);
}

.nav-item.active .nav-icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(206deg) brightness(97%) contrast(97%);
}

.nav-label {
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
  font-family: "Open Sans Hebrew", "Open Sans", sans-serif;
}

/* ── Hamburger button (hidden on desktop) ────────── */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #2C2C2C;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Drawer overlay ──────────────────────────────── */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Slide-out drawer ────────────────────────────── */

.drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 1060;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.is-open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.drawer-logo {
  height: 32px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: #2C2C2C;
  font-size: 16px;
  font-weight: 400;
  font-family: "Open Sans Hebrew", "Open Sans", sans-serif;
  direction: rtl;
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer-item:hover {
  background: var(--fsp-hover-bg);
}

.drawer-item.active {
  color: #0071E3;
  background: #e0ebff;
  font-weight: 500;
}

.drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.drawer-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.drawer-item.active .drawer-icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(206deg) brightness(97%) contrast(97%);
}

/* ── Tablet (768px – 1024px) ─────────────────────── */

@media (max-width: 1024px) {
  .nav-items {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .drawer-overlay {
    display: block;
  }

  .drawer {
    display: flex;
  }

  .toolbar-container {
    justify-content: space-between;
    padding: 0 16px;
  }

  .nav-logo {
    padding: 0;
  }
}

/* ── Phone (< 768px) ────────────────────────────── */

@media (max-width: 767px) {
  .toolbar-container {
    height: 48px;
    padding: 0 12px;
  }

  .nav-logo .logo-10x {
    height: 24px;
  }

  .drawer {
    width: 260px;
    right: -260px;
  }

  .drawer.is-open {
    right: 0;
  }

  .drawer-item {
    padding: 0.75rem 1.25rem;
    font-size: 15px;
  }

  .drawer-icon {
    width: 24px;
    height: 24px;
  }

  .drawer-icon img {
    width: 18px;
    height: 18px;
  }
}