aside.sidebar {
  position: fixed;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  .logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .nav-item {
    width: 56px;
    padding: 6px 4px 4px;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      transform 0.08s ease;
  }

  .icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .label {
    font-size: 11px;
    line-height: 1.2;
    color: #555;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .nav-item.active {
    background: var(--accent-light);
    border-color: var(--accent);
  }

  .active .icon {
    background: var(--accent);
    color: #fff;
  }

  .nav-item:hover {
    background: #f3f4f8;
    transform: translateY(-1px);
  }

  .spacer {
    flex: 1 1 auto;
  }

  .footer {
    font-size: 11px;
    color: #888;
    text-align: center;
  }
}

@media (max-width: 768px) {
  aside.sidebar {
    padding: 10px 4px;
  }
}

@media (max-width: 580px) {
  aside.sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px 10px;

    .logo {
      margin-bottom: 0;
    }

    .nav {
      flex-direction: row;
      justify-content: center;
    }

    .spacer,
    .footer {
      display: none;
    }
  }
}

