/* Floating Icon */
#accessibility-widget {
    position: fixed;
    top: 80px; /* Place the icon at the top */
    left: 20px; /* Place the icon on the left */
    z-index: 1000;
}

#accessibility-icon {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

  /* Fix alignment */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}

/* Accessibility Menu */
#accessibility-menu {
    position: fixed;
    top: 140px; /* Adjust menu placement relative to the icon */
    left: 20px; /* Align menu with the floating icon */
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#accessibility-menu.hidden {
    display: none;
}

#accessibility-menu h3 {
    margin-top: 0;
    font-size: 16px;
    text-align: center;
}

#accessibility-menu button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#accessibility-menu button:hover {
    background-color: #0056b3;
}

  
/* Grayscale Mode */
.grayscale {
    filter: grayscale(100%);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 2px;
}


/* High Contrast Mode */
.high-contrast {
    background-color: black !important;
    color: white !important;
  }
  

  
  .high-contrast h1,
  .high-contrast h2,
  .high-contrast h3,
  .high-contrast h4,
  .high-contrast h5,
  .high-contrast h6 {
    color: white !important;
  }

  .high-contrast #accessibility-menu h3 {
    color: black !important; /* Ensure this h3 stays black in high contrast mode */
  }
  
  .high-contrast p,
  .high-contrast span,
  .high-contrast li,
  .high-contrast td,
  .high-contrast th {
    color: white !important;
  }
  
  .high-contrast button,
  .high-contrast input,
  .high-contrast textarea,
  .high-contrast select {
    background-color: black !important;
    color: white !important;
    border: 1px solid white !important;
  }
  
  .high-contrast table {
    border: 1px solid white !important;
  }
  
  .high-contrast th,
  .high-contrast td {
    border: 1px solid white !important;
  }
  
  .high-contrast ::placeholder {
    color: lightgray !important;
    opacity: 1; /* Ensure placeholder is visible */
  }
  
  /* Add high contrast for specific classes */
  .high-contrast .row {
    background-color: black !important;
    color: white !important;
    border: none !important;
  }
  
  .high-contrast .col-12 {
    background-color: black !important;
    color: white !important;
    border: 1px solid white !important;
    padding: 1rem; /* Ensure spacing inside columns */
    margin-bottom: 1rem; /* Optional: Maintain spacing between grid items */
  }
  
  .high-contrast .form-bod-checkbox {
    background-color: black !important;
    color: white !important;
    border: none !important;
  }

  .high-contrast #custom-footer-row .col-12 {
    border: none !important; /* Remove border */
  }

  .high-contrast #search-box .col-12 {
    border: none !important; /* Remove border */
  }

  .high-contrast .pBorder {
    border: 1px solid white !important;
  }

  .high-contrast .col-md-4 {
    background-color: black !important;
    color: white !important;
    
    padding: 1rem; /* Ensure spacing inside columns */
    margin-bottom: 1rem; /* Optional: Maintain spacing between grid items */
  }

  .high-contrast .card,
  .high-contrast .card.mb-3,
  .high-contrast .accordion-body, 
  .high-contrast .container-fluid{
    background-color: black !important;
    color: white !important;

    padding: 1rem; /* Ensure spacing inside columns */
    margin-bottom: 1rem; /* Optional: Maintain spacing between grid items */
  }

  .high-contrast .p-3 {
    background-color: black !important;
    color: white !important;
  }
  
  .high-contrast .bg-light {
    background-color: black !important; /* Override light background */
    color: white !important;
  }

  .high-contrast .rounded {
    border-radius: 8px; /* Maintain rounded corners */
    border: 1px solid white !important;
  }

  .high-contrast img,
  .high-contrast .bg-image {
    filter: grayscale(100%) invert(1);
  }

  .high-contrast #footer-org-logo img {
    filter: none !important; /* Disable grayscale and invert filters */
  }
  
  .high-contrast .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: black !important;
    color: white !important;
  }
  
  /* High Contrast Mode - Dropdown Menu */
  .high-contrast .dropdown-menu {
    background-color: black !important;
    color: white !important;
    border: 1px solid white !important;
  }
  
  .high-contrast .dropdown-menu.show {
    display: block !important;
    background-color: black !important;
    color: white !important;
    border: 1px solid white !important;
  }
  
  /* Hover Effect for Dropdown Items */
  .high-contrast .dropdown-menu .dropdown-item:hover {
    background-color: white !important; /* White background on hover */
    color: black !important; /* Black text on hover */
  }
  
  /* Optional: Add hover effect to entire menu */
  .high-contrast .dropdown-menu:hover {
    border-color: yellow !important; /* Highlight border when hovering over menu */
  }
  
  .high-contrast .bg-white {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .high-contrast .bg-white {
    background-color: black !important; /* Override white background */
    color: white !important;
  }

  /* High Contrast Mode - Buttons */
.high-contrast .btn-primary {
    background-color: grey !important; /* High contrast background */
    color: white !important; /* High contrast text */
    border: 2px solid white !important; /* Visible border */
  }
  
  .high-contrast .btn-primary:hover {
    background-color: white !important; /* Invert background on hover */
    color: black !important; /* Invert text color */
    border-color: black !important;
  }

  .high-contrast .checkbox-label {
    color: white !important;
  }
  
  .underline-links a {
    
    text-decoration: underline !important;
  }
  
  .high-contrast a {
    color: yellow !important;
  }

  .high-contrast #accessibility-title {
    color: black !important;
  }