#bot-controls {
  position: fixed;
  bottom: 3rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1000;
}

#bot-controls button {
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

#info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  z-index: 2000;
}

#info-modal[hidden] {
  display: none;
}

.modal-content {
  background: var(--base-background-color);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 400px;
}

#bot-controls button {
  background: var(--base-background-color);
  color: var(--base-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

#bot-controls button:hover {
  background: var(--theme-color);
  color: #fff;
}

#info-panel {
  position: fixed;
  bottom: 3rem;
  right: 4rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.4;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

#info-panel[hidden] {
  display: none;
}

/* state hyperlinks */
.state-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.state-nav > * {
  display: contents;
}

.state-nav-item {
  display: grid; 
  font-size: 0.95rem;
}

.state-nav a.state-nav-item {
  color: #4ea3ff;         
  text-decoration: none;  
}

.state-nav a.state-nav-item:hover {
  color: #ffffff;   
  text-decoration: underline;     
}

.state-nav .current {
  color: #8b8b8b;
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

/* update banner */
#update-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;

  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;

  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);

  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
}

#update-banner a {
  color: var(--theme-color);
  text-decoration: none;
}

#update-banner a:hover {
  text-decoration: underline;
}

/* no update banner for mobile users */
@media (max-width: 768px) {
  #update-banner {
    display: none;
  }
}

/* Wrap ONLY the active page */
.sidebar-nav li.active > a {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
