/* Demo Toolbar - Persistent navigation for demo pages */
.demo-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(135deg, #20212C 0%, #2d2d44 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: 'Open Sans', system-ui, sans-serif;
}

.demo-toolbar-left,
.demo-toolbar-center,
.demo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-toolbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.demo-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.demo-toolbar-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.demo-toolbar-btn.active,
.demo-toolbar-btn:active {
  background: var(--versantus-raspberry, #F0146E);
}

.demo-toolbar-btn i {
  font-size: 0.75rem;
}

.demo-toolbar-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.demo-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.demo-toolbar-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.demo-toolbar-nav-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.demo-toolbar-nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.demo-toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  margin: 0 0.5rem;
}

.demo-toolbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.demo-toolbar-logo img {
  height: 24px;
  width: auto;
}

/* Offset page content for toolbar */
body.has-demo-toolbar {
  padding-top: 48px;
}

/* Offset fixed/sticky headers when toolbar is present */
body.has-demo-toolbar header.fixed,
body.has-demo-toolbar header.sticky,
body.has-demo-toolbar header[class*="fixed"],
body.has-demo-toolbar header[class*="sticky"],
body.has-demo-toolbar .fixed-header,
body.has-demo-toolbar #header {
  top: 48px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .demo-toolbar-title {
    display: none;
  }
  
  .demo-toolbar-btn span {
    display: none;
  }
  
  .demo-toolbar-btn {
    padding: 0.5rem;
  }
}

