.exampleSidebar {
  padding: 1.25rem;
  width: 30vw;
  max-height: 90vh;
  min-height: 80vh;
  overflow: scroll;
  background: var(--ifm-background-surface-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  position: sticky;
  top: calc(var(--ifm-navbar-height) + 1rem);
  border: 1px solid var(--ifm-color-emphasis-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header with toggle */
.sidebarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sidebarTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ifm-heading-color);
}

.modeToggle {
  display: flex;
  background: var(--ifm-color-emphasis-100);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.toggleButton {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ifm-color-emphasis-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggleButton:hover {
  background: var(--ifm-color-emphasis-200);
}

.toggleButton.active {
  background: var(--ifm-color-primary);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggleIcon {
  width: 14px;
  height: 14px;
}

/* QR Content */
.qrContent {
  display: flex;
  flex-direction: column;
}

.instructionsContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qrCodeContainer {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: var(--ifm-color-emphasis-50);
  border-radius: 12px;
  border: 2px dashed var(--ifm-color-emphasis-300);
}

.qrCode {
  width: 160px;
  height: 160px;
  border-radius: 8px;
}

.instructions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.instructionsTitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ifm-heading-color);
  text-align: center;
}

.instructionsSubtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ifm-color-emphasis-700);
  text-align: center;
  line-height: 1.4;
}

.stepsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.stepNumber {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--ifm-color-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.stepContent {
  flex: 1;
}

.stepContent strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ifm-heading-color);
  margin-bottom: 0.25rem;
}

.stepContent p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ifm-color-emphasis-700);
  line-height: 1.3;
}

.platformInstructions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.platform {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--ifm-color-emphasis-100);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.platformIcon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.platform div {
  flex: 1;
}

.platform strong {
  color: var(--ifm-heading-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

.platform div:not(strong) {
  color: var(--ifm-color-emphasis-700);
}

.previewButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--ifm-color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.previewButton:hover {
  background: var(--ifm-color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.buttonIcon {
  width: 16px;
  height: 16px;
}

/* QR Only View */
.qrOnlyContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qrDescription {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ifm-color-emphasis-700);
  text-align: center;
  line-height: 1.4;
}

.showInstructionsButton {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--ifm-color-primary);
  border: 1px solid var(--ifm-color-primary);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showInstructionsButton:hover {
  background: var(--ifm-color-primary);
  color: white;
}

/* Web Content */
.webContent {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
}

.iframeContainer {
  max-height: 750px;
  max-width: 350px;
  aspect-ratio: 350/750;
  height: 100%;
  border-radius: 50px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--ifm-color-emphasis-100);
}

.iframe {
  border: none;
  height: 100%;
  width: 100%;
  width: 350px;
  height: 750px;
}

.webDescription {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ifm-color-emphasis-700);
  text-align: center;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 1416px) {
  .exampleSidebar {
    padding: 0.65rem;
  }
  
  .iframeContainer {
    max-width: 350px;
    width: 350px;
    height: 750px;
    max-height: 750px;
    zoom: 0.8;
  }
  
  .qrCode {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 1200px) {
  .exampleSidebar {
    width: 280px;
    padding: 1rem;
  }
  
  .iframeContainer {
    max-width: 220px;
    width: 220px;
    height: 440px;
    max-height: 440px;
  }
  
  .qrCode {
    width: 120px;
    height: 120px;
  }
  
  .sidebarHeader {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .modeToggle {
    justify-content: center;
    margin-left: 0.25rem;
  }
  
  .platform {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .platformIcon {
    align-self: center;
    margin-top: 0;
  }
}

@media (max-width: 996px) {
  .exampleSidebar {
    display: none; /* Hide on mobile/tablet where TOC is usually hidden */
  }
}

/* Dark mode adjustments */
[data-theme='dark'] .qrCodeContainer {
  background: var(--ifm-color-emphasis-200);
  border-color: var(--ifm-color-emphasis-400);
}

[data-theme='dark'] .platform {
  background: var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .modeToggle {
  background: var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .toggleButton:hover {
  background: var(--ifm-color-emphasis-300);
}

/* Animation for smooth transitions */
.qrContent,
.webContent {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 