header {
  height: var(--header-height);
  position: absolute;
  top: 0px;
  background-color: var(--bg-header);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  height: 100%;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header-title a {
  color: inherit;
  text-decoration: none;
  font-weight: bold !important;
  /* cursor: default; */
}

.header-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-header);
  flex-wrap: nowrap;
  @media (max-width: 600px) {
    font-size: 1.2rem;
  }
  @media (max-width: 400px) {
    font-size: 1rem;
  }
  @media (max-width: 300px) {
    & span {
      display: none;
    }
  }
}

.header-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.header-title svg {
  height: 32px;
  width: 32px;
  background-color: var(--bg-card-hover);
  border-radius: 6px;
}

.header-navigation {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
    font-size: 1rem;

  @media (max-width: 600px) {
    /* display: none; */
    font-size: 0.8rem;
  }

  & .header-nav-hide {
    @media (max-width: 600px) {
      display: none;
    }
  }

  & a {
    color: var(--text-secondary);
    font-weight: bold;

    &:hover {
      text-decoration: none;
      color: var(--link-hover);
    }
  }
}

.header-items {
  display: flex;
  flex-direction: row;
  gap: 12px;
}


.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 10px;

  background: var(--bg-card-main);
  border: 1px solid var(--border-color-main);

  color: var(--text-main);

  cursor: pointer;
  user-select: none;

  transition: all 0.2s ease;
}

/* hover как в SaaS */
.theme-toggle:hover {
  background: var(--bg-card-hover, #f3f4f6);
  transform: translateY(-1px);
}

/* focus как у нормальных UI библиотек */
.theme-toggle:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* иконки */
.theme-toggle .icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}