/* Mirrors components/features/sidebar.tsx — static demo frames */

.ds-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--card);
  box-shadow: 4px 0 24px rgb(15 23 42 / 0.06);
}

/* Fixed chrome for public/demo-frames/*.html — same viewport; main column scrolls */
.demo-window {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(720px, calc(100vh - 32px));
}
.demo-frame-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 640px;
  max-height: 640px;
  min-height: 0;
  overflow: hidden;
}
.demo-frame-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fcfdff;
}
.demo-frame-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.ds-collapse-fake {
  position: absolute;
  right: 0;
  top: 2.5rem;
  z-index: 30;
  transform: translateX(50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ds-logo-wrap {
  flex-shrink: 0;
  padding: 1.25rem 0.75rem 0;
}

.ds-brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.375rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.ds-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--primary-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ds-brand-icon img {
  width: 26px;
  height: 26px;
}

.ds-brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ds-badge-free {
  display: inline-block;
  margin-top: 0.125rem;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  font-weight: 600;
  border-radius: 0.25rem;
  background: #dbeafe;
  color: var(--primary);
}

.ds-nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.75rem;
}

.ds-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ds-nav-link:hover {
  background: rgba(239, 246, 255, 0.65);
  color: var(--text);
}

.ds-nav-link.ds-active {
  background: var(--primary-muted);
  color: var(--primary);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.ds-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-mes-cours {
  margin-top: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(241, 245, 249, 0.35);
}

.ds-mes-cours[open] {
  background: rgba(241, 245, 249, 0.45);
}

.ds-mes-cours summary {
  list-style: none;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.ds-mes-cours summary::-webkit-details-marker {
  display: none;
}

.ds-mes-cours .ds-mc-body {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.5rem 0.375rem 0.5rem;
}

.ds-course-indent {
  margin-left: 0.375rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(226, 232, 240, 0.95);
}

.ds-course-link {
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.ds-course-link:hover {
  background: rgba(239, 246, 255, 0.65);
  color: var(--text);
}

.ds-course-link.ds-active {
  background: var(--primary-muted);
  color: var(--primary);
  font-weight: 600;
}

.ds-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.ds-planning-mini {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(241, 245, 249, 0.4);
  padding: 0.5rem;
}

.ds-planning-mini h4 {
  margin: 0 0 0.375rem;
  padding: 0 0.125rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ds-planning-mini p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.ds-planning-mini a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ds-sidebar-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 1rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card);
}

.ds-bottom-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ds-btn-subscribe {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: default;
}

.ds-notif-btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ds-notif-btn:hover {
  background: rgba(239, 246, 255, 0.65);
  color: var(--text);
}

.ds-profile {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ds-profile:hover {
  background: rgba(239, 246, 255, 0.65);
  color: var(--text);
}

.ds-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
