/*

 * Main navigation — sidebar (desktop) + tab bar (mobile)

 * Figma: Fjwp2LpKcYRD1xkBAnaVHB node 368:83389 / 368:83883

 */

.main-nav {

  display: contents;

}



.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1024px;
  min-height: var(--app-topbar-bar-height);
  padding: 8px 20px;
  border-radius: 99px;
  background: #ffffff;
  pointer-events: auto;
  box-shadow:
    0 0 0.5px rgb(66 71 76 / 32%),
    0 4px 8px rgb(66 71 76 / 5%),
    0 4px 40px #f5f5fe;
}

.app-topbar__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 120px;
  height: 15px;
  line-height: 0;
  text-decoration: none;
}

.app-topbar__logo-svg {
  display: block;
  width: 120px;
  height: 15px;
}

.app-topbar__actions {

  display: flex;

  align-items: center;

  gap: 16px;

}



.app-topbar__action {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 24px;

  height: 24px;

  padding: 0;

  color: var(--color-text);

}



.app-topbar__badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 75% 25%, #8ee468 0%, #1fb5a8 100%);
  box-shadow: 0 0 0 0 rgb(16 139 136 / 45%);
  animation: notification-badge-pulse 1.8s ease-out infinite;
}

.app-topbar__badge[hidden] {
  display: none;
  animation: none;
}

@keyframes notification-badge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(16 139 136 / 45%);
  }

  70% {
    box-shadow: 0 0 0 8px rgb(16 139 136 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(16 139 136 / 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-topbar__badge {
    animation: none;
  }
}

.app-topbar__action-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* Create lives in the topbar on desktop; mobile/tablet use the FAB */
.app-topbar__action--create {
  display: none;
}

@media (max-width: 767px) {

  .app-topbar {

    max-width: none;

    min-height: var(--app-topbar-bar-height);

    padding: 16px 16px 12px;

    border-radius: 0;

    box-shadow: none;

  }

  .app-topbar__logo,
  .app-topbar__logo-svg {
    width: 120px;
    height: 15px;
  }

  .app-topbar__actions {
    gap: 20px;
  }

}

@media (min-width: 1280px) {
  .app-topbar__action--create {
    display: flex;
  }
}



.main-nav__sidebar {

  display: none;

}



.main-nav__tabs {

  display: flex;

  flex-direction: column;

  gap: 20px;

  width: 100%;

  margin: 0;

  padding: 2px;

  list-style: none;

  border: 1px solid #eaebea;

  border-radius: 16px;

  background: #ffffff;

  box-shadow:

    0 4px 8px rgb(66 71 76 / 5%),

    0 4px 40px #f5f5fe;

}



.main-nav__tabs > li {

  margin: 0;

  padding: 0;

  list-style: none;

}



.main-nav__item {

  display: flex;

  align-items: center;

  gap: 8px;

  min-height: 55px;

  padding: 16px;

  border: 1px solid transparent;

  border-radius: 99px;

  color: var(--color-text);

  font-size: 13px;

  font-weight: 400;

  line-height: 1.3;

  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;

}



.main-nav__item:hover {

  background: var(--color-section-bg);

}



.main-nav__item--active {

  background: var(--color-tab-active-bg);

  border-color: var(--color-accent-green);

  color: var(--color-button);

}



.main-nav__icon {

  flex-shrink: 0;

  color: currentColor;

}



.main-nav__label {

  flex: 1;

}



/* Mobile tab bar — node 368:84106 */



.main-nav__tabbar {

  position: fixed;

  right: 0;

  bottom: 0;

  left: 0;

  z-index: var(--app-chrome-z-tabbar);

  padding: 0 20px max(0px, env(safe-area-inset-bottom, 0px));

  background: transparent;

  pointer-events: none;

}

.main-nav__tabbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 502px;
  height: 50px;
  margin: 0 auto;
  padding: 2px;
  border-radius: 99px;
  background: #ffffff;
  pointer-events: auto;
  box-shadow:
    0 0 0.5px rgb(66 71 76 / 32%),
    0 4px 8px rgb(66 71 76 / 5%),
    0 4px 40px #f5f5fe;
}



.main-nav__tab {

  display: flex;

  flex: 1 1 0;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 2px;

  min-width: 0;

  max-width: 66.2px;

  height: 50px;

  padding: 2px;

  border-radius: 100px;

  color: var(--color-text);

  font-size: 10px;

  font-weight: 400;

  line-height: 1.1;

  letter-spacing: -0.24px;

  text-align: center;

}



.main-nav__tab:hover {

  color: var(--color-text);

}



.main-nav__tab--active {

  background: rgb(63 196 133 / 12%);

  color: var(--color-accent-green);

}



.main-nav__tab-icon {

  flex-shrink: 0;

  width: 24px;

  height: 24px;

}



.main-nav__tab-label {

  overflow: hidden;

  width: 100%;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.main-nav__tabbar-safe {

  height: 34px;

  max-width: 502px;

  margin: 0 auto;

}



@media (min-width: 768px) {

  body.app-body {

    background: #ffffff;

  }



  .main-nav__tabbar-inner {

    max-width: var(--content-tablet);

  }



  .main-nav__tabbar-safe {

    max-width: var(--content-tablet);

  }

}



@media (min-width: 1280px) {

  .main-nav__sidebar {

    display: block;

  }



  .main-nav__tabbar {

    display: none;

  }



  .app-topbar {

    max-width: 1024px;

  }

}


