


/* Sidebar */
.accessibility-sidebar {
  position: fixed;
  top: 0;
  right: -430px; /* hidden by default */
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.accessibility-sidebar.open {
  right: 0;
}

/* Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 15px 24px 15px;
  font-weight: bold;
}

.sidebar-header span {
  display: flex;
  align-items: center;
  gap: 5px;
}

#closeBtn {
  width: 30px;
  background: #000;
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: #fff;
  height: 30px;
  border-radius: 50px;
  position: absolute;
  top: 43px;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px;
  flex: 0;
}

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0px 5px rgb(0 0 0 / 21%);
  gap: 15px;
}

.option:hover {
  background: #f2f2f2;
  transform: scale(1.05);
}

.option span {
  margin-top: 8px;
  font-size: 14px;
}












/* Dark Contrast Mode */
body.dark-mode {
  background: #111;
  color: #fff;
}
body.dark-mode .option {
  border-color: #444;
}
body.dark-mode .accessibility-sidebar {
  background: #222;
  color: #fff;
}

/* Saturation Mode */
/* body.saturation {
  filter: saturate(2);
} */
/* Dark mode basics */
body.dark-mode  {
  background: #111 !important;
  color: #ffff00 !important;
}
body.dark-mode .download  {
  background: #111 !important;
  color: #ffff00 !important;
}

body.dark-mode ul {
  background: #111 !important;
  color: #ffff00 !important;
}
body.dark-mode .navbar-nav .nav-link {  color: #ffff00 !important;
}

/* Apply dark background to all sections */
body.dark-mode header,
body.dark-mode footer,
body.dark-mode section,
body.dark-mode div,
body.dark-mode .container,
body.dark-mode .row,
body.dark-mode table {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #000000 !important;
}

/* Links in dark mode */
body.dark-mode p {
  color: #ffff00 !important;
}
body.dark-mode a {
  color: #ffff00 !important;
}
body.dark-mode th {
  color: #ffff00 !important;
}
body.dark-mode td {
  color: #ffff00 !important;
}
/* Buttons in dark mode */
body.dark-mode button {
  background: #333 !important;
  color: #ffff00 !important;
  border: 1px solid #555 !important;
}

/* Inputs / forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #222 !important;
  color: #ffff00 !important;
  border: 1px solid #555 !important;
}

/* Tables */
body.dark-mode table th,
body.dark-mode table td {
  background: #222 !important;
  color: #ffff00 !important;
  border-color: #444 !important;
}

.saturation::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: saturate(0.3);
  pointer-events: none; /* so it won’t block clicks */
  z-index: 9999;
}


.saturation .fixed-header {
  filter: none !important;
  position: fixed; /* ensure it stays fixed */
  z-index: 1000;
}
/* Responsive */
@media (max-width: 480px) {
  .accessibility-sidebar {
    width: 100%;
  }
}
.accessibility-sidebar .option {
  cursor: pointer;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.accessibility-sidebar .option:hover {
  background: #005ABA;
    color:#fff
}

.accessibility-sidebar .option.active {
  background: #005ABA;
  color: #fff;
}

.reset-box {
  margin-top: 15px;
  text-align: center;
}

