/* Accessibility Widget Container */
#enable-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2531;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2247483647;
  padding: 16px;
  border-top: 4px solid #368ec4;
}

/* Show notice only when toolbar is active */
#enable-toolbar.show-enable-toolbar {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#enable-toolbar.show-enable-toolbar {
  transform: translateY(0);
}

/* Buttons Container */
#enable-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* Individual Button Styling */
.tool-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  min-width: 100px;
  height: 80px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
}

.tool-button:hover {
  background: #f0f0f0;
  box-shadow: inset 0 0 0 2px #3a8dc2;
}

.tool-button.active {
  box-shadow: inset 0 0 0 3px #3a8dc2;
}

/* Icon Styling */
.icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}

/* Shortcut Label */
.keyboard-shortcut {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.7;
}

/* Trigger Button */
#enable-toolbar-trigger {
  position: fixed;
  bottom: 50%;
  /* left: 20px; */
  right: "-20px";
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2196f3;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2247483648;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

#enable-toolbar-trigger:hover {
  transform: scale(1.1);
}

/* Active State Indicator */
.tool-button.active::after {
  content: "✓";
  position: absolute;
  top: 4px;
  left: 4px;
  color: #3a8dc2;
  font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #enable-toolbar-buttons {
    gap: 4px;
  }

  .tool-button {
    min-width: 80px;
    padding: 8px;
    height: 70px;
  }
}
