/* Botão Flutuante */
.accessibility-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px; 
  background: linear-gradient(90deg,#006be6,#0260dd,#0555d4,#0749cb,#093ec2)!important; 
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}


.accessibility-float-btn:hover {
  background: linear-gradient(90deg,#006be6,#0260dd,#0555d4,#0749cb,#093ec2)!important; 
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}


/* Painel Lateral */
.accessibility-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 450px;
  height: 100vh;
  background-color: #fff;
  border-left: 1px solid #dee2e6;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  z-index: 1051;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 450px) {
  .accessibility-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    border-left: none;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
  }
}

.accessibility-panel.show {
  right: 0;
}

.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(90deg,#006be6,#0260dd,#0555d4,#0749cb,#093ec2)!important; 
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.accessibility-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.accessibility-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* Bloco de Opções */
.accessibility-option-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.option-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.option-info i {
  font-size: 1.4rem;
  color: #165788;
}

.option-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

/* Toggle Switch Estilo Botão */
.accessibility-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background-color: #686c6e;
  border: none;
  padding: 0;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.accessibility-switch::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  top: 3px;
  left: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.accessibility-switch.active {
  background-color: #165788;
}

.accessibility-switch.active::before {
  transform: translateX(18px);
}

/* Estilo para contraste e dislexia no body */
body.contrast {
  background-color: #000 !important;
  color: #fff !important;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2'),
       url('../fonts/OpenDyslexic-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.dyslexia-font {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
}

.accessibility-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid #ced4da;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.shortcut-card:hover {
  background-color: #f1f3f5;
  border-color: #adb5bd;
}

.shortcut-card i {
  font-size: 1.8rem;
  color: #165788;
  margin-bottom: 6px;
}

.shortcut-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}
