/* Pro Style Preview Container */
/* Pro Style Preview Container */
.dark-reader-pro-style-preview {
  position: relative;
  margin: 10px 0;
  padding: 15px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark-reader-pro-style-preview.dark {
  background: #1a1a1a;
}

/* Base toggle container */
.dark-reader-toggle.style-modern-slider,
.dark-reader-toggle.style-text-toggle,
.dark-reader-toggle.style-minimal-toggle,
.dark-reader-toggle.style-ios-toggle,
.dark-reader-toggle.style-ios-toggle-icon {
  width: auto !important;
  height: auto !important;
}

/* Modern Slider Preview */
.modern-slider-preview {
  width: 60px;
  height: 32px;
  position: relative;
  margin: 22px auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modern-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  transform: translateY(-50%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.modern-slider-thumb {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-slider-icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.4s ease;
}

.dark-reader-style-option:hover .modern-slider-preview {
  transform: scale(1.05);
}

.dark-reader-style-option:hover .modern-slider-track {
  background: #2271b1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-reader-style-option:hover .modern-slider-thumb {
  transform: translate(30px, -50%);
  box-shadow: 0 6px 16px rgba(34, 113, 177, 0.3);
}

.dark-reader-style-option:hover .modern-slider-icon {
  transform: rotate(360deg);
}

/* Modern Slider Dark Mode */
.dark .modern-slider-track {
  background: #3c3f3f;
}

.dark .modern-slider-thumb {
  left: calc(100% - 30px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.dark .modern-slider-icon::before {
  content: "🌙";
}

/* Base toggle container */
.dark-reader-toggle.style-modern-slider,
.dark-reader-toggle.style-text-toggle,
.dark-reader-toggle.style-minimal-toggle,
.dark-reader-toggle.style-ios-toggle,
.dark-reader-toggle.style-ios-toggle-icon {
  width: auto !important;
  height: auto !important;
}

/* Modern Slider Preview */
.modern-slider-preview {
  width: 60px;
  height: 32px;
  position: relative;
  margin: 22px auto;
}

.modern-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  transform: translateY(-50%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-slider-thumb {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-slider-thumb::before {
  content: "☀️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1;
  color: #f59e0b;
}

/* Modern Slider Dark Mode */
.dark-reader-pro-style-preview.dark .modern-slider-track {
  background: #3c3f3f;
}

.dark-reader-pro-style-preview.dark .modern-slider-thumb {
  left: calc(100% - 30px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.dark-reader-pro-style-preview.dark .modern-slider-thumb::before {
  content: "🌙";
  color: #8b5cf6;
}

/* Pro Styles Grid */
.dark-reader-pro-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.dark-reader-preview-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Slider Style */
.modern-slider-preview {
  width: 60px;
  height: 32px;
  position: relative;
}

.modern-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  transform: translateY(-50%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-slider-thumb {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-slider-icon {
  font-size: 14px;
  line-height: 1;
}

/* Modern Slider Dark Mode */
.dark .modern-slider-track {
  background: #3c3f3f;
}

.dark .modern-slider-thumb {
  left: calc(100% - 30px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.dark .modern-slider-icon::before {
  content: "🌙";
}

/* Modern Slider Button Base */
.dark-reader-toggle.style-modern-slider button {
  background: transparent !important;
  position: relative !important;
  width: 60px !important;
  height: 32px !important;
}

/* Track (::before pseudo-element) */
.dark-reader-toggle.style-modern-slider button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb !important;
  border-radius: 3px;
  transform: translateY(-50%);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Thumb (::after pseudo-element) */
.dark-reader-toggle.style-modern-slider button::after {
  content: "☀️";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 24px;
  height: 24px;
  background: #ffffff !important;
  border-radius: 50% !important;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #f59e0b !important;
}

/* Dark Mode States */
.dark-reader-toggle.style-modern-slider.dark button::before {
  background: #3c3f3f !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-reader-toggle.style-modern-slider.dark button::after {
  content: "🌙" !important;
  left: calc(100% - 24px - 6px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
  color: #3c3f3f !important;
}

/* Minimal Toggle Style - Based on Image */
.dark-reader-toggle.style-minimal-toggle button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: inherit !important;
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
  font-size: inherit !important;
  perspective: 1200px !important;
}

/* Minimal Toggle Track */
.dark-reader-toggle.style-minimal-toggle button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border-radius: 8px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Minimal Toggle Thumb */
.dark-reader-toggle.style-minimal-toggle button::after {
  content: "☀️";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 7px;
  transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #f59e0b;
  transform: translate(-50%, -50%) rotateY(0deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode States */
.dark-reader-toggle.style-minimal-toggle.dark button::before {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-reader-toggle.style-minimal-toggle.dark button::after {
  content: "🌙" !important;
  color: #8b5cf6;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3),
    0 4px 10px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translate(-50%, -50%) rotateY(180deg);
}

/* Hover Effects */
.dark-reader-toggle.style-minimal-toggle button:hover::after {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translate(-50%, -50%) scale(1.02) rotateY(0deg);
}

.dark-reader-toggle.style-minimal-toggle.dark button:hover::after {
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4),
    0 6px 15px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translate(-50%, -50%) scale(1.02) rotateY(180deg);
}

/* Active State */
.dark-reader-toggle.style-minimal-toggle button:active::after {
  transform: translate(-50%, -50%) scale(0.96) rotateY(0deg);
  transition: 0.1s ease;
}

.dark-reader-toggle.style-minimal-toggle.dark button:active::after {
  transform: translate(-50%, -50%) scale(0.96) rotateY(180deg);
}

/* Minimal Toggle Preview Styles */
.minimal-toggle-track {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  margin: 22px auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  perspective: 1200px;
}

.minimal-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 7px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transform: translate(-50%, -50%) rotateY(0deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.minimal-toggle-thumb::before {
  content: "☀️";
  color: #f59e0b;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Dark Mode Preview */
.dark-reader-pro-style-preview.dark .minimal-toggle-track {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-reader-pro-style-preview.dark .minimal-toggle-thumb {
  transform: translate(-50%, -50%) rotateY(180deg);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3),
    0 4px 10px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark-reader-pro-style-preview.dark .minimal-toggle-thumb::before {
  content: "🌙";
  color: #8b5cf6;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Text Toggle Preview */
.text-toggle-preview {
  width: 120px;
  height: 36px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.text-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

.text-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: #ffffff;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.text-toggle-preview .text-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  z-index: 2;
  transition: all 0.3s ease;
}

.text-toggle-preview .text-label.light {
  color: #ffffff;
}

.dark-reader-style-option:hover .text-toggle-preview {
  transform: scale(1.05);
}

.dark-reader-style-option:hover .text-toggle-track {
  background: #2271b1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-reader-style-option:hover .text-toggle-thumb {
  transform: translateX(calc(100% + 4px));
  box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.dark-reader-style-option:hover .text-toggle-preview .text-label.dark {
  color: #ffffff;
}

/* Text Toggle Dark Mode */
.dark .text-toggle-thumb {
  left: calc(50% + 2px);
}

.dark .text-toggle-preview .text-label.light {
  color: #374151;
}

.dark .text-toggle-preview .text-label.dark {
  color: #ffffff;
}

/* FlipFlop Toggle Preview */
.flipflop-toggle-preview {
  width: 45px;
  height: 45px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  margin: 22px auto;
}

.flipflop-toggle-container {
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flipflop-toggle-front,
.flipflop-toggle-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flipflop-toggle-front {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  transform: rotateY(0deg);
}

.flipflop-toggle-back {
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  transform: rotateY(180deg);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
}

.flip-icon {
  font-size: 18px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-reader-style-option:hover .flipflop-toggle-container {
  transform: rotateY(180deg) scale(1.05);
}

.dark-reader-style-option:hover .flip-icon {
  transform: rotate(360deg);
}

.dark-reader-style-option:hover .flipflop-toggle-front {
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.6);
}

.dark-reader-style-option:hover .flipflop-toggle-back {
  box-shadow: 0 6px 16px rgba(34, 113, 177, 0.6);
}

/* FlipFlop Dark Mode */
.dark .flipflop-toggle-container {
  transform: rotateY(180deg);
}

.dark .flipflop-toggle-front {
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.dark .flipflop-toggle-back {
  background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

/* iOS Toggle Preview */
.ios-toggle-preview {
  width: 90px;
  height: 32px;
  position: relative;
}

.ios-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #b0b0b0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
}

.ios-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  background: #000;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ios-toggle-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.ios-toggle-text.off {
  color: #666666;
}

.ios-toggle-text.on {
  color: #fff;
  opacity: 0;
}

/* iOS Toggle Dark Mode */
.dark .ios-toggle-thumb {
  background: red;
  left: calc(100% - 30px);
}

.dark .ios-toggle-text.off {
  opacity: 0;
}

.dark .ios-toggle-text.on {
  opacity: 1;
}

/* iOS Toggle Icon Preview */
.ios-toggle-icon-preview {
  width: 70px;
  height: 32px;
  position: relative;
}

.ios-toggle-icon-preview .ios-toggle-track {
  width: 100%;
}

.toggle-icon {
  font-size: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-icon.light {
  left: 10px;
}

.toggle-icon.dark {
  right: 10px;
  opacity: 0;
}

/* iOS Toggle Icon Dark Mode */
.dark .toggle-icon.light {
  opacity: 0;
}

.dark .toggle-icon.dark {
  opacity: 1;
}

/* Pro Style Option */
.dark-reader-style-option.pro-style {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.dark-reader-style-option.pro-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #2271b1;
}

.dark-reader-style-option.pro-style.selected {
  border-color: #2271b1;
  background: rgba(34, 113, 177, 0.05);
}

.pro-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b6b;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Text Toggle Style - Based on Image Reference */
.dark-reader-toggle.style-text-toggle button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: inherit !important;
  position: relative !important;
  width: 120px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

/* Text Toggle Track */
.dark-reader-toggle.style-text-toggle button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb !important;
  border-radius: 18px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Text Toggle Thumb */
.dark-reader-toggle.style-text-toggle button::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: #ffffff !important;
  border-radius: 16px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Text Labels */
.dark-reader-toggle.style-text-toggle .text-label {
  position: absolute;
  z-index: 3;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.dark-reader-toggle.style-text-toggle .text-label.light {
  left: 12px;
  color: #ffffff;
}

.dark-reader-toggle.style-text-toggle .text-label.dark {
  right: 12px;
  color: #374151;
}

/* Dark Mode States */
.dark-reader-toggle.style-text-toggle.dark button::after {
  left: calc(50% + 1px);
}

.dark-reader-toggle.style-text-toggle.dark .text-label.light {
  color: #374151;
}

.dark-reader-toggle.style-text-toggle.dark .text-label.dark {
  color: #ffffff;
}

/* Hover Effects */
.dark-reader-toggle.style-text-toggle button:hover::after {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Active State */
.dark-reader-toggle.style-text-toggle button:active::after {
  transform: scale(0.98);
  transition: 0.1s ease;
}

/* Text Toggle Preview Styles */
.text-toggle-track {
  position: relative;
  width: 120px;
  height: 36px;
  background: #e5e7eb;
  border-radius: 18px;
  margin: 22px auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.text-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  z-index: 2;
  position: relative;
}

.text-label.light {
  color: #ffffff;
}

/* Dark Mode Preview */
.dark-reader-pro-style-preview.dark .text-toggle-thumb {
  left: calc(50% + 1px);
}

.dark-reader-pro-style-preview.dark .text-label.light {
  color: #374151;
}

.dark-reader-pro-style-preview.dark .text-label.dark {
  color: #ffffff;
}

/* FlipFlop Toggle - 3D Flip Animation */
.dark-reader-toggle.style-flipflop-toggle button {
  width: 45px !important;
  height: 45px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  position: relative !important;
  cursor: pointer !important;
  perspective: 1000px !important;
  transform-style: preserve-3d !important;
  transition: all 0.3s ease !important;
}

/* FlipFlop Container */
.dark-reader-toggle.style-flipflop-toggle button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* FlipFlop Front (Sun) */
.dark-reader-toggle.style-flipflop-toggle .flipflop-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.dark-reader-toggle.style-flipflop-toggle .flipflop-track::before {
  content: "☀️";
  display: block;
  text-align: center;
  line-height: 1;
}

/* FlipFlop Back (Moon) */
.dark-reader-toggle.style-flipflop-toggle .flipflop-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(180deg);
  font-size: 18px;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.dark-reader-toggle.style-flipflop-toggle .flipflop-thumb::before {
  content: "🌙";
  display: block;
  text-align: center;
  line-height: 1;
}

/* Dark Mode States */
.dark-reader-toggle.style-flipflop-toggle.dark button::before {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  transform: rotateY(180deg);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark-reader-toggle.style-flipflop-toggle.dark .flipflop-track {
  transform: translate(-50%, -50%) rotateY(180deg);
}

.dark-reader-toggle.style-flipflop-toggle.dark .flipflop-thumb {
  transform: translate(-50%, -50%) rotateY(0deg);
}

/* Hover Effects */
.dark-reader-toggle.style-flipflop-toggle button:hover::before {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.dark-reader-toggle.style-flipflop-toggle.dark button:hover::before {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: rotateY(180deg) scale(1.05);
}

/* FlipFlop Toggle Preview */
.flipflop-toggle-container {
  width: 45px;
  height: 45px;
  position: relative;
  margin: 22px auto;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.flipflop-toggle-front {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.flipflop-toggle-front::before {
  content: "☀️";
  display: block;
  text-align: center;
  line-height: 1;
}

.flipflop-toggle-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(180deg);
  font-size: 18px;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.flipflop-toggle-back::before {
  content: "🌙";
  display: block;
  text-align: center;
  line-height: 1;
}

/* Dark Mode Preview */
.dark-reader-pro-style-preview.dark .flipflop-toggle-front {
  transform: translate(-50%, -50%) rotateY(180deg);
}

.dark-reader-pro-style-preview.dark .flipflop-toggle-back {
  transform: translate(-50%, -50%) rotateY(0deg);
}

/* iOS Toggle Preview Styles */
.ios-toggle-preview {
  width: 90px;
  height: 32px;
  position: relative;
  margin: 22px auto;
}

.ios-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #b0b0b0;
}

.ios-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  background: #000;
  border-radius: 4px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ios-toggle-text {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 50%;
  transform: translateY(-50%);
}

.ios-toggle-text.off {
  right: 10px;
  color: #666666;
}

.ios-toggle-text.on {
  left: 10px;
  color: #fff;
  opacity: 0;
}

/* iOS Toggle Dark Mode */
.dark-reader-pro-style-preview.dark .ios-toggle-thumb {
  background: red;
  left: calc(100% - 30px);
}

.dark-reader-pro-style-preview.dark .ios-toggle-text.off {
  opacity: 0;
}

.dark-reader-pro-style-preview.dark .ios-toggle-text.on {
  opacity: 1;
}

/* iOS Toggle Icon Preview Styles */
.ios-toggle-icon-preview {
  width: 70px;
  height: 32px;
  position: relative;
  margin: 22px auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ios-toggle-icon-preview .ios-toggle-track {
  width: 70px;
  background: #fff;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.ios-toggle-icon-preview .ios-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  background: #000;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-toggle-icon-preview .toggle-icon {
  font-size: 14px;
  transition: all 0.3s ease;
}

.ios-toggle-icon-preview .toggle-icon.light {
  opacity: 1;
}

.ios-toggle-icon-preview .toggle-icon.dark {
  opacity: 0;
  position: absolute;
}

.dark-reader-style-option:hover .ios-toggle-icon-preview {
  transform: scale(1.05);
}

.dark-reader-style-option:hover .ios-toggle-track {
  background: #2271b1;
  border-color: #2271b1;
}

.dark-reader-style-option:hover .ios-toggle-thumb {
  transform: translateX(38px);
  background: #fff;
}

.dark-reader-style-option:hover .toggle-icon.light {
  opacity: 0;
}

.dark-reader-style-option:hover .toggle-icon.dark {
  opacity: 1;
}

/* iOS Toggle Icon Dark Mode */
.dark .ios-toggle-icon-preview .toggle-icon.light {
  opacity: 0;
}

.dark .ios-toggle-icon-preview .toggle-icon.dark {
  opacity: 1;
}

.dark .ios-toggle-icon-preview .ios-toggle-track {
  background: #34c759;
  border-color: #34c759;
}

.dark .ios-toggle-icon-preview .ios-toggle-thumb {
  background: #fff;
  transform: translateX(38px);
}

/* iOS Toggle Style - Based on Image Reference */
.dark-reader-toggle.style-ios-toggle button,
.dark-reader-toggle.style-ios-toggle-icon button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: inherit !important;
  position: relative !important;
  width: 90px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.dark-reader-toggle.style-ios-toggle-icon button {
  width: 70px !important;
}

/* iOS Toggle Track */
.dark-reader-toggle.style-ios-toggle button::before,
.dark-reader-toggle.style-ios-toggle-icon button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff !important;
  border-radius: 4px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #b0b0b0 !important;
}

/* iOS Toggle Knob */
.dark-reader-toggle.style-ios-toggle button::after,
.dark-reader-toggle.style-ios-toggle-icon button::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  background: #000 !important;
  border-radius: 4px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  z-index: 2;
}

.dark-reader-toggle.style-ios-toggle .ios-toggle-text.off,
.dark-reader-toggle.style-ios-toggle-icon .ios-toggle-text.off {
  right: 10px;
  color: #666666;
}

.dark-reader-toggle.style-ios-toggle .ios-toggle-text.on,
.dark-reader-toggle.style-ios-toggle-icon .ios-toggle-text.on {
  left: 10px;
  color: #fff;
  opacity: 0;
}

/* Dark Mode States (ON State) */
.dark-reader-toggle.style-ios-toggle.dark button::after,
.dark-reader-toggle.style-ios-toggle-icon.dark button::after {
  background: red !important;
  border-color: red !important;
}

.dark-reader-toggle.style-ios-toggle.dark button::after,
.dark-reader-toggle.style-ios-toggle-icon.dark button::after {
  left: calc(100% - 30px);
}

.dark-reader-toggle.style-ios-toggle.dark .ios-toggle-text.off,
.dark-reader-toggle.style-ios-toggle-icon.dark .ios-toggle-text.off {
  opacity: 0;
}

.dark-reader-toggle.style-ios-toggle.dark .ios-toggle-text.on,
.dark-reader-toggle.style-ios-toggle-icon.dark .ios-toggle-text.on {
  opacity: 1;
}

/* Active State */
.dark-reader-toggle.style-ios-toggle button:active::after,
.dark-reader-toggle.style-ios-toggle-icon button:active::after {
  transform: scale(0.95);
  transition: 0.1s ease;
}

.dark-reader-toggle.style-ios-toggle .ios-toggle-text,
.dark-reader-toggle.style-ios-toggle-icon .ios-toggle-text {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}
