/* Layout: left + right */
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* <-- pushes brand left, menu right */
}

/* Left text brand */
.brand {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #111;
  text-align: left;
}

/* Right menu container */
#menu-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* Reset & base */
body {
  font-family: "Quicksand", Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Fixed top bar */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  z-index: 1000;

    /* ✨ Frosted glass effect */
  background: rgba(255, 255, 255, 0.25); /* semi-transparent white */
  backdrop-filter: blur(6px);           /* actual blur effect */
  -webkit-backdrop-filter: blur(6px);   /* Safari support */

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  z-index: 1000;
}

/* Sketch host: reserve a predictable size */
#sketch-canvas {
  height: 40px;          /* matches sketch.js height below */
  width: 160px;          /* tweak as you like */
  display: flex;
  align-items: center;
}

/* Menu container lives inside the bar, dropdown anchors to it */
#menu-container {
  position: relative;     /* anchor for absolute dropdown */
  display: inline-block;
}

/* Hamburger */
#menu-toggler {
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 8px;
}

#menu-toggler:hover {
  background: #f2f2f2;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #333;
}

/* Dropdown */
#menu {
  list-style-type: none;
  padding: 8px 0;
  margin: 8px 0 0 0;
  display: none; /* Hidden by default */
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  min-width: 220px;
  max-height: 80vh;
  overflow-y: auto;

  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 12px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  z-index: 1100;
}

#menu.hidden { display: none; }
#menu.visible { display: block; }

#menu li {
  margin: 0;
  list-style: none;
}

#menu a {
  text-decoration: none;
  color: #333;
  cursor: pointer;
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
}

#menu a:hover {
  background: #f7f7f7;
}

/* Collapsible submenus */
#menu ul {
  padding-left: 0.5em;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  list-style: none;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

#menu ul.show {
  max-height: 500px;
  padding-left: 0.5em;
}

.collapsible { font-weight: 500; }
.level1 { font-weight: 700; text-align: left; }
.level2 { font-weight: 500; text-align: left; }
.level3 { font-weight: 300; text-align: left; }

#menu a.active {
  background-color: #eee;
  color: #111;
  font-weight: 700;
}
