/* accessibility-toolbar.css */
#accessibility-toggle {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #7d56b1;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}
#accessibility-toggle svg {
  width: 28px;
  height: 28px;
  fill: white;
}
#accessibility-toolbar {
  position: fixed;
  top: 50%;
  right: 85px;
  transform: translateY(-50%);
  width: 270px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(30,50,90,0.15);
  border: 1px solid #dbe4ec;
  padding: 20px 18px 15px 20px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  animation: slideInRight 0.22s;
}
@keyframes slideInRight {
  from {transform: translateY(-50%) translateX(30px); opacity:0;}
  to {transform: translateY(-50%) translateX(0); opacity:1;}
}
#accessibility-toolbar h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #7d56b1;
}
.acc-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}
.acc-tool-list li {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  cursor: pointer;
  transition: background 0.17s;
  border-radius: 7px;
  padding: 3px 7px;
}
.acc-tool-list li:hover {
  background: #ecf3fa;
}
.acc-tool-list .icon {
  width: 22px;
  margin-right: 9px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
}
.acc-reset {
  color: #7d56b1;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
  padding: 3px 0;
  transition: background 0.17s;
  border-radius: 7px;
  font-weight: 500;
}
.acc-reset:hover {
  background: #f1f5fa;
}

.high-contrast {
  background-color: black !important;
  color: white !important;
}

/* Links inside high contrast */
.high-contrast a {
  color: yellow !important;
  text-decoration: underline !important;
}

/* Exclude accessibility toolbar and toggle button from color changes */
.high-contrast #accessibility-toolbar,
.high-contrast #accessibility-toggle {
  background-color: #fff !important;  /* keep toolbar background white */
  color: #212121 !important;           /* keep text dark for readability */
}

/* Also restore icon colors inside the toolbar if needed */
.high-contrast #accessibility-toolbar svg,
.high-contrast #accessibility-toggle img {
  fill: initial !important;
  color: inherit !important;
}
