/* Floating Phone Button */
.floating-phone-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #D1B262;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-phone-button:hover {
    transform: scale(1.1);
}

.floating-phone-button svg {
    width: 30px;
    height: 30px;
    stroke: #000;
}

/* --- ACCESSIBILITY MENU STYLES START --- */

.accessibility-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #d1b161;
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.accessibility-button:hover {
    background-color: #c19f4a;
    transform: scale(1.1);
}

.accessibility-popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 30px;
    bottom: 100px; /* Position above the button */
    width: 320px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow: hidden;
    font-size: 14px;
    color: #1c1e21;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.popup-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.popup-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #606770;
}

.popup-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.option-group {
    margin-bottom: 20px;
}

.option-group h3, .option-toggle h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #606770;
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.option-buttons button {
    background-color: #fff;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-size: 14px;
    color: #1c1e21;
}

.option-buttons.text-size-buttons,
.option-buttons.text-spacing-buttons {
    grid-template-columns: 1fr 1fr;
}

.option-buttons button.active {
    background-color: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.option-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.option-toggle h3 {
    margin: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1877f2;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.popup-footer p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #606770;
}

.reset-button {
    background-color: #f5f6f7;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}
.reset-button:hover {
    background-color: #e9ebee;
}

/* Accessibility Feature Styles */
html.contrast-invert {
    background-color: #fff !important;
    filter: invert(100%) !important;
}
html.contrast-invert img,
html.contrast-invert iframe,
html.contrast-invert video {
    filter: invert(100%) !important;
}
body.contrast-grayscale {
    filter: grayscale(100%) !important;
}
body.contrast-light {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}
body.contrast-dark {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
}
body.contrast-dark a {
    color: #58a6ff !important;
}
body.highlight-links a {
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
}
body.hide-images img {
    display: none !important;
}
body.dyslexia-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}
body.large-cursor, body.large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" style="font-size:32px;"><text y="32">▶</text></svg>') 0 0, auto !important;
}

body.pause-animations *,
body.pause-animations *::before,
body.pause-animations *::after {
    animation-play-state: paused !important;
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0.001s !important;
}

body.show-tooltips [title] {
    outline: 2px solid #0051e0 !important;
    outline-offset: 2px;
}

/* --- ACCESSIBILITY MENU STYLES END --- */