/* ============================================================
   Design Navigator — Fixed top bar for browsing wireframes
   40px dark bar with search, prev/next, page indicator
   ============================================================ */

#design-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 40px;
  background: #111;
  color: #ccc;
  font-family: 'Inter', ui-monospace, Menlo, monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  border-bottom: 1px solid #333;
  user-select: none;
  -webkit-user-select: none;
}

/* Label */
#design-nav-bar .dn-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Current page indicator */
#design-nav-bar .dn-current {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid #333;
  background: #1a1a1a;
  min-width: 180px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
#design-nav-bar .dn-current:hover {
  border-color: #555;
  background: #222;
}
#design-nav-bar .dn-current::after {
  content: '▾';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 10px;
}

/* Prev/Next buttons */
#design-nav-bar .dn-btn {
  background: #1a1a1a;
  color: #aaa;
  border: 1px solid #333;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
#design-nav-bar .dn-btn:hover {
  background: #222;
  color: #fff;
  border-color: #555;
}
#design-nav-bar .dn-btn kbd {
  font-size: 10px;
  color: #555;
  font-family: inherit;
}

/* Page counter */
#design-nav-bar .dn-counter {
  font-size: 10px;
  color: #555;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Spacer */
#design-nav-bar .dn-spacer {
  flex: 1;
}

/* Shortcut hint */
#design-nav-bar .dn-hint {
  font-size: 10px;
  color: #444;
  letter-spacing: 0.05em;
}

/* ============ DROPDOWN ============ */
#design-nav-dropdown {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #111;
  border-bottom: 1px solid #333;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: none;
}
#design-nav-dropdown.open {
  display: block;
}

/* Search input */
#design-nav-dropdown .dn-search {
  position: sticky;
  top: 0;
  background: #111;
  padding: 8px 12px;
  border-bottom: 1px solid #222;
}
#design-nav-dropdown .dn-search input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  font-family: 'Inter', ui-monospace, Menlo, monospace;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
}
#design-nav-dropdown .dn-search input:focus {
  border-color: #666;
}
#design-nav-dropdown .dn-search input::placeholder {
  color: #555;
}

/* Page list */
#design-nav-dropdown .dn-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
#design-nav-dropdown .dn-list li {
  margin: 0;
}
#design-nav-dropdown .dn-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Inter', ui-monospace, Menlo, monospace;
  border-left: 3px solid transparent;
  transition: background 0.1s;
}
#design-nav-dropdown .dn-list a:hover,
#design-nav-dropdown .dn-list a.dn-focused {
  background: #1a1a1a;
  color: #fff;
}
#design-nav-dropdown .dn-list a.dn-active {
  color: #fff;
  font-weight: 600;
  border-left-color: #888;
  background: #1a1a1a;
}
#design-nav-dropdown .dn-list .dn-idx {
  font-size: 10px;
  color: #555;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}
#design-nav-dropdown .dn-list .dn-name {
  flex: 1;
}
#design-nav-dropdown .dn-list .dn-group {
  font-size: 10px;
  color: #444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Section headers */
#design-nav-dropdown .dn-section {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  border-top: 1px solid #222;
}
#design-nav-dropdown .dn-section:first-child {
  border-top: none;
}

/* Hidden when search doesn't match */
#design-nav-dropdown .dn-list li.dn-hidden {
  display: none;
}

/* ============ PRINT ============ */
@media print {
  #design-nav-bar,
  #design-nav-dropdown {
    display: none !important;
  }
}
