/** * BetterDesk Console - Tutorial System Styles * Spotlight overlay with animated tooltips. */ /* ============ Overlay ============ */ .tutorial-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: auto; } .tutorial-overlay.active { opacity: 1; visibility: visible; } /* ============ Spotlight ============ */ .tutorial-spotlight { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75), 0 0 32px rgba(88, 166, 255, 0.3); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; z-index: 1; } /* Pulsing animation for spotlight */ .tutorial-spotlight::before { content: ''; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid rgba(88, 166, 255, 0.5); animation: tutorial-pulse 2s ease-in-out infinite; } @keyframes tutorial-pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.02); } } /* ============ Tooltip ============ */ .tutorial-tooltip { position: fixed; width: 360px; max-width: calc(100vw - 32px); background: rgba(22, 27, 34, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(48, 54, 61, 0.8); border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset; z-index: 2; animation: tutorial-tooltip-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards; overflow: hidden; } @keyframes tutorial-tooltip-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Tooltip Header */ .tutorial-tooltip-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid rgba(48, 54, 61, 0.5); background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent); } .tutorial-title { font-size: 16px; font-weight: 600; color: #f0f6fc; letter-spacing: -0.02em; } .tutorial-close { width: 28px; height: 28px; border: none; background: transparent; color: #8b949e; cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; } .tutorial-close:hover { background: rgba(255, 255, 255, 0.08); color: #c9d1d9; } .tutorial-close .material-icons { font-size: 20px; } /* Tooltip Body */ .tutorial-tooltip-body { padding: 16px 20px; font-size: 14px; line-height: 1.6; color: #c9d1d9; } /* Tooltip Footer */ .tutorial-tooltip-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 16px; border-top: 1px solid rgba(48, 54, 61, 0.3); background: rgba(0, 0, 0, 0.15); } .tutorial-progress { font-size: 12px; color: #6e7681; font-weight: 500; } .tutorial-actions { display: flex; align-items: center; gap: 8px; } /* Buttons */ .tutorial-btn { padding: 8px 16px; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; background: rgba(255, 255, 255, 0.06); color: #8b949e; } .tutorial-btn:hover { background: rgba(255, 255, 255, 0.1); color: #c9d1d9; } .tutorial-btn-primary { background: linear-gradient(135deg, #238636, #2ea043); color: #ffffff; box-shadow: 0 2px 8px rgba(46, 160, 67, 0.25); } .tutorial-btn-primary:hover { background: linear-gradient(135deg, #2ea043, #3fb950); box-shadow: 0 4px 12px rgba(46, 160, 67, 0.35); } .tutorial-skip { background: transparent; color: #6e7681; } .tutorial-skip:hover { background: rgba(255, 255, 255, 0.04); color: #8b949e; } /* ============ Mobile Responsive ============ */ @media (max-width: 480px) { .tutorial-tooltip { width: calc(100vw - 24px); left: 12px !important; right: 12px !important; bottom: 24px !important; top: auto !important; transform: none !important; } .tutorial-spotlight { display: none; } .tutorial-tooltip-footer { flex-direction: column; gap: 12px; } .tutorial-progress { order: 2; } .tutorial-actions { order: 1; width: 100%; justify-content: flex-end; } .tutorial-btn { flex: 1; } } /* ============ Foldable Phone Styles ============ */ @media (screen-spanning: single-fold-vertical) { .tutorial-tooltip { max-width: 340px; } } /* ============ Animations ============ */ .tutorial-overlay.active .tutorial-tooltip { animation: tutorial-tooltip-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards; } /* Step transition */ .tutorial-tooltip.step-transition { animation: tutorial-step-change 0.25s ease; } @keyframes tutorial-step-change { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: 0; transform: translateX(-16px); } 51% { transform: translateX(16px); } 100% { opacity: 1; transform: translateX(0); } } /* ============ Floating Help Button ============ */ .tutorial-help-btn { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none; background: linear-gradient(135deg, #238636, #2ea043); color: #fff; cursor: pointer; box-shadow: 0 4px 16px rgba(46, 160, 67, 0.35), 0 2px 6px rgba(0,0,0,0.2); z-index: 9990; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; opacity: 0; transform: scale(0.6); pointer-events: none; } .tutorial-help-btn.visible { opacity: 1; transform: scale(1); pointer-events: auto; } .tutorial-help-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(46, 160, 67, 0.45), 0 3px 8px rgba(0,0,0,0.25); } .tutorial-help-btn .material-icons { font-size: 22px; } /* Help button dropdown menu */ .tutorial-help-menu { position: fixed; bottom: 72px; right: 20px; background: rgba(22, 27, 34, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(48, 54, 61, 0.8); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 9991; min-width: 200px; padding: 6px; opacity: 0; transform: translateY(8px) scale(0.95); pointer-events: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .tutorial-help-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; } .tutorial-help-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: none; background: transparent; color: #c9d1d9; font-size: 13px; cursor: pointer; border-radius: 8px; width: 100%; text-align: left; transition: background 0.12s ease; } .tutorial-help-menu-item:hover { background: rgba(255, 255, 255, 0.08); color: #f0f6fc; } .tutorial-help-menu-item .material-icons { font-size: 18px; opacity: 0.6; } .tutorial-help-menu-divider { height: 1px; background: rgba(48, 54, 61, 0.5); margin: 4px 8px; } /* Hide help button in desktop mode (taskbar has its own controls) */ .desktop-mode-active .tutorial-help-btn { bottom: 56px; } /* Progress dots */ .tutorial-progress-dots { display: flex; align-items: center; gap: 6px; } .tutorial-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(139, 148, 158, 0.3); transition: all 0.25s ease; } .tutorial-progress-dot.active { background: #58a6ff; transform: scale(1.3); } .tutorial-progress-dot.seen { background: rgba(88, 166, 255, 0.4); }