/* Accessibility Panel Styles */

.a11y-panel {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* Toggle Button */
.a11y-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: white;
  transition: all 0.2s;
}

.a11y-toggle-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.a11y-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Panel Content */
.a11y-panel-content {
  animation: slideUp 0.3s ease-out;
}

.a11y-panel-content[hidden] {
  display: none !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Theme button active state */
.a11y-theme-btn.active {
  background: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
}

.a11y-theme-btn.active i {
  color: #ffffff !important;
}

.a11y-theme-btn.active span {
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Colorblind button active state */
.a11y-colorblind-btn.active {
  background: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
}

.a11y-colorblind-btn.active span {
  color: #ffffff !important;
  font-weight: 500 !important;
}

.a11y-colorblind-btn.active div span {
  background: #ffffff !important;
}

/* Font size button active state */
.a11y-fontsize-btn.active {
  background: var(--accent-color) !important;
  border: 1px solid var(--accent-color) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Spacing button active state */
.a11y-spacing-btn.active {
  background: var(--accent-color) !important;
  border: 1px solid var(--accent-color) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Toggle button active state */
button[aria-label="Toggle bold font"][data-active="true"] {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

button[aria-label="Toggle bold font"][data-active="true"] span {
  background: #ffffff !important;
  right: 3px !important;
  left: auto !important;
}

/* Reset button hover state */
#a11yReset:hover {
  background: #2a2a2a !important;
  border-color: var(--accent-color) !important;
}

/* Scrollbar styling */
div::-webkit-scrollbar {
  width: 6px;
}

div::-webkit-scrollbar-track {
  background: transparent;
}

div::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 3px;
}

div::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}
