/* Styling tambahan untuk pengelompokkan widget */
/* Semua mode button (Contrast, Saturation, dll) */
.mode-buttons-group {
  display: flex;
  background: #eee;
  padding: 4px;
  border-radius: 8px;
  gap: 2px !important;
}

.mode-buttons-group .mode-btn {
  background: transparent;
  color: #333;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mode-buttons-group .mode-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mode-buttons-group .mode-btn.active {
  background: #000;
  color: #fff;
}
/* Class active saat tombol dipilih (bisa di-toggle via JavaScript) */
.contrast-buttons-group .contrast-btn.active {
  background: #000;
  color: #fff;
}
.accessibility-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #555;
  margin: 5px 0;
  letter-spacing: 0.5px;
}

.section-divider {
  border: 0;
  border-top: 1px dashed #ddd;
  margin: 10px 0;
}

/* Membuat tata letak tombol font & spacing menjadi lebih rapi */
.font-size-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.font-buttons {
  display: flex;
  gap: 8px;
}
.bg-black-aceesibility {
  background-color: #000;
  color: white;
}

.accessibility-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;

  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  width: 30vw;
  height: 80vh; /* jaga minimal height */
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  z-index: 1000;
  /* padding-right: 20px; */
}
.container-button-drag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0px 30px;
  cursor: grab;
}
.reset-btn {
  margin:10px 30px;
  padding: 10px 0px;
  border-radius: 10px;
  cursor: pointer;
}

.button-drag-text {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

/* Heading panel */
.accessibility-panel-title {
  font-size: 16px;
  margin: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
  color: #000;
}

/* Floating button */
.accessibility-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;

  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  font-size: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.accessibility-fab:hover {
  background: #222;
  transform: scale(1.05);
}
.accessibility-fab:active {
  transform: scale(0.95);
}

/* Kontainer fitur */
.containerbutton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* Feature toggle wrapper */
.feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

/* Info di sebelah kiri */
.feature-info {
  flex: 1;
}

/* Switch container */
.switch-wrapper {
  position: relative;
  width: 40px;
  height: 20px;
}
.switch-input {
  display: none; /* sembunyiin asli */
}
.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  transition: transform 0.3s;
}

/* aktif */
.switch-input:checked + .switch-slider {
  background: #000;
}
.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
  background: #f9f9f9;
}

/* Tombol biasa */
.button {
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.button:hover {
  background: #333;
}
.button:active {
  background: #555;
}

/* Scroll dalam panel */
.container-main-panel {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 30px 15px 30px;
}

/* jangan diubah */
.reading_mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999999999;
  pointer-events: none;
  display: none;
}

.hidden {
  display: none;
}
