/* ============================================
   Demo Guide Widget — плавающий помощник для демо-режима
   ============================================ */

.demo-guide {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  font-family: var(--bs-body-font-family, system-ui, -apple-system, sans-serif);
}

/* Карточка гида */
.demo-guide__card {
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}

.demo-guide__card.hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* Заголовок */
.demo-guide__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--blue, #4f8cff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.demo-guide__header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-guide__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.demo-guide__close:hover {
  color: #fff;
}

/* Контент шага */
.demo-guide__body {
  padding: 16px;
}

.demo-guide__step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--bs-body-color, #212529);
}

.demo-guide__step-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 12px;
}

/* Прогресс */
.demo-guide__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.demo-guide__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-border-color, #dee2e6);
  transition: background 0.2s;
}
.demo-guide__dot.active {
  background: var(--blue, #4f8cff);
}
.demo-guide__dot.done {
  background: var(--bs-success, #198754);
}

/* Кнопки */
.demo-guide__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.demo-guide__btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.demo-guide__btn--primary {
  background: var(--blue, #4f8cff);
  color: #fff;
}
.demo-guide__btn--primary:hover {
  filter: brightness(0.92);
}

.demo-guide__btn--secondary {
  background: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-body-color, #212529);
}
.demo-guide__btn--secondary:hover {
  filter: brightness(0.95);
}

.demo-guide__btn--success {
  background: var(--bs-success, #198754);
  color: #fff;
}
.demo-guide__btn--success:hover {
  filter: brightness(0.92);
}

/* Свёрнутое состояние — FAB */
.demo-guide__fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue, #4f8cff);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.demo-guide__fab:hover {
  transform: scale(1.08);
}
.demo-guide__fab.hidden {
  display: none;
}

/* Мобильная адаптация */
@media (max-width: 576px) {
  .demo-guide {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  .demo-guide__card {
    width: 100%;
    max-width: none;
  }
}
