/* ==========================================
   ONode Onboarding Guide (High Legibility & Clean Menu Button Style)
   ========================================== */

/* Popover Card */
.driver-popover.onode-guide-popover {
  background: #1c1c1e !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  padding: 16px 18px !important;
  font-family: var(--font-family, 'Pretendard Variable', Pretendard, sans-serif) !important;
  max-width: 330px !important;
  width: calc(100vw - 40px) !important;
  box-sizing: border-box !important;
  z-index: 1000000000 !important;
}

/* Light theme support */
[data-theme="light"] .driver-popover.onode-guide-popover {
  background: #ffffff !important;
  color: #191f28 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Close Button (X) */
.driver-popover.onode-guide-popover .driver-popover-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 22px !important;
  height: 22px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #9eabb8 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.driver-popover.onode-guide-popover .driver-popover-close-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-close-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #191f28 !important;
}

/* Title */
.driver-popover.onode-guide-popover .driver-popover-title {
  font-family: var(--font-family, 'Pretendard Variable', Pretendard, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  padding-right: 22px !important;
  letter-spacing: -0.3px !important;
  line-height: 1.35 !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-title {
  color: #191f28 !important;
}

/* Description (가독성 극대화: 선명하고 밝은 텍스트 #f2f4f6) */
.driver-popover.onode-guide-popover .driver-popover-description {
  font-family: var(--font-family, 'Pretendard Variable', Pretendard, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #f2f4f6 !important;
  line-height: 1.6 !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.2px !important;
  word-break: keep-all !important;
  opacity: 0.95 !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-description {
  color: #333d4b !important;
  opacity: 1 !important;
}

/* Footer Container */
.driver-popover.onode-guide-popover .driver-popover-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

/* Progress Step Indicator (e.g. 1/5) */
.driver-popover.onode-guide-popover .driver-popover-progress-text {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #8b95a1 !important;
  font-family: var(--font-family, 'Pretendard Variable', Pretendard, sans-serif) !important;
  letter-spacing: 0.3px !important;
}

/* Button Group */
.driver-popover.onode-guide-popover .driver-popover-navigation-btns {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

/* Base Button Style (부드럽고 얇은 350/400 웨이트, 깔끔한 12px) */
.driver-popover.onode-guide-popover .driver-popover-btn,
.driver-popover.onode-guide-popover .driver-popover-footer button,
.driver-popover.onode-guide-popover button.driver-popover-next-btn,
.driver-popover.onode-guide-popover button.driver-popover-prev-btn,
.driver-popover.onode-guide-popover button.driver-popover-close-btn {
  font-family: var(--font-family, 'Pretendard Variable', Pretendard, -apple-system, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 350 !important;
  font-variation-settings: 'wght' 350 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  height: 28px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: -0.2px !important;
  text-shadow: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.driver-popover.onode-guide-popover .driver-popover-btn:active {
  transform: scale(0.96) !important;
}

/* Previous Button */
.driver-popover.onode-guide-popover .driver-popover-prev-btn,
.driver-popover.onode-guide-popover button.driver-popover-prev-btn {
  background: #2c2c2e !important;
  color: #adb5bd !important;
  border: none !important;
  font-weight: 350 !important;
  font-variation-settings: 'wght' 350 !important;
}

.driver-popover.onode-guide-popover .driver-popover-prev-btn:hover {
  background: #3a3a3c !important;
  color: #ffffff !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-prev-btn {
  background: #f2f4f6 !important;
  color: #4e5968 !important;
  border: none !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-prev-btn:hover {
  background: #e5e8eb !important;
  color: #191f28 !important;
}

/* Next & Done Button (오노드 블루 #3182F6, 부드러운 400 웨이트) */
.driver-popover.onode-guide-popover .driver-popover-next-btn,
.driver-popover.onode-guide-popover button.driver-popover-next-btn {
  background: #3182F6 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 400 !important;
  font-variation-settings: 'wght' 400 !important;
}

.driver-popover.onode-guide-popover .driver-popover-next-btn:hover {
  background: #1b64da !important;
}

/* Popover Arrow */
.driver-popover.onode-guide-popover .driver-popover-arrow {
  border-color: #1c1c1e !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-arrow {
  border-color: #ffffff !important;
}

.driver-popover.onode-guide-popover .driver-popover-arrow-side-top {
  border-bottom-color: #1c1c1e !important;
}
.driver-popover.onode-guide-popover .driver-popover-arrow-side-bottom {
  border-top-color: #1c1c1e !important;
}
.driver-popover.onode-guide-popover .driver-popover-arrow-side-left {
  border-right-color: #1c1c1e !important;
}
.driver-popover.onode-guide-popover .driver-popover-arrow-side-right {
  border-left-color: #1c1c1e !important;
}

[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-arrow-side-top {
  border-bottom-color: #ffffff !important;
}
[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-arrow-side-bottom {
  border-top-color: #ffffff !important;
}
[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-arrow-side-left {
  border-right-color: #ffffff !important;
}
[data-theme="light"] .driver-popover.onode-guide-popover .driver-popover-arrow-side-right {
  border-left-color: #ffffff !important;
}

/* Stage Spotlight cutout styling */
.driver-stage-active {
  border-radius: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
