/* ═══════════════════════════════════════════════════════════ FlowDeck Notion UI — Design System Référence: Notion Dark Mode (analysé 2026-07-08) Couleurs: #191919 fond, #222 sidebar, #333 actif, #FFF texte ═══════════════════════════════════════════════════════════ */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); :root { /* ===== Couleurs Notion Dark Mode ===== */ --bg-primary: #191919; --bg-secondary: #1f1f1f; --bg-sidebar: #222222; --bg-tertiary: #333333; --bg-hover: #2a2a2a; --bg-active: #2F2E2E; --bg-modal: #252525; --text-primary: #FFFFFF; --text-secondary: #A0A0A0; --text-dim: #6B6B6B; --text-muted: #4A4A4A; --border: #333333; --border-color: rgba(255,255,255,0.06); --border-light: #3a3a3a; /* ===== Couleurs d'accent Notion ===== */ --blue: #3366CC; --blue-bg: #1a2744; --green: #00CC66; --green-bg: #1a332a; --yellow: #FFD700; --orange: #D9730D; --red: #E03E3E; --purple: #9B72F0; --pink: #E255A1; --gray: #787774; --brown: #9D6E4A; /* ===== Typographie ===== */ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'SF Mono', 'Fira Code', monospace; /* ===== Dimensions ===== */ --sidebar-width: 240px; --sidebar-collapsed: 0px; --topbar-height: 44px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; /* ===== Espacements ===== */ --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 24px; /* ===== Transitions ===== */ --transition: 0.15s ease; } [data-theme="light"] { --bg-primary: #FFFFFF; --bg-secondary: #FBFBFA; --bg-sidebar: #F7F6F3; --bg-tertiary: #EDEDEC; --bg-hover: #EFEFEE; --bg-active: #E8E7E4; --bg-modal: #FFFFFF; --text-primary: #1A1A1A; --text-secondary: #6B6B6B; --text-dim: #9B9B9B; --text-muted: #B0B0B0; --border: #E0E0E0; --border-color: rgba(0,0,0,0.06); --border-light: #EDEDEC; --blue-bg: #E8F0FE; --green-bg: #E6F4EA; } /* ===== Reset & Base ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; overflow: hidden; font-family: var(--font-sans); font-size: 14px; color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration: none; } button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; } input, select, textarea { font-family: inherit; color: inherit; } /* ===== Layout Principal ===== */ .app-layout { display: flex; height: 100vh; width: 100vw; } /* ═══════════════════════════════════════════════════════════ SIDEBAR ═══════════════════════════════════════════════════════════ */ .sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100vh; background: var(--bg-sidebar); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; flex-shrink: 0; user-select: none; padding-bottom: var(--space-sm); } .sidebar.collapsed { width: 0; min-width: 0; overflow: hidden; padding: 0; } /* Workspace header */ .sidebar-workspace { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md); min-height: var(--topbar-height); } .workspace-info { display: flex; align-items: center; gap: var(--space-sm); } .workspace-avatar { width: 22px; height: 22px; background: var(--bg-tertiary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-primary); } .workspace-name { font-size: 14px; font-weight: 600; color: var(--text-primary); } .sidebar-actions { display: flex; align-items: center; gap: 2px; } .sidebar-action-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; transition: background var(--transition); } .sidebar-action-btn:hover { background: var(--bg-hover); } /* Navigation items */ .sidebar-nav { display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-md); margin-bottom: var(--space-xs); } .sidebar-nav-item { flex: 1; display: flex; align-items: center; gap: var(--space-sm); padding: 6px 8px; border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); transition: background var(--transition); white-space: nowrap; } .sidebar-nav-item:hover { background: var(--bg-hover); } .sidebar-nav-item.active { background: var(--bg-active); } .sidebar-nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; } /* Navigation icon row (Notion top bar) */ .sidebar-nav-row { display: flex; align-items: center; gap: 3px; padding: 6px 6px; margin: 0 2px; } .nav-icon-btn { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; color: var(--text-secondary); transition: background 0.15s, color 0.15s; } .nav-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-icon-btn.active { background: var(--bg-active); color: var(--text-primary); } /* Home button: icon + text */ .nav-icon-btn.home-btn { padding: 6px 8px; gap: 8px; font-size: 14px; font-weight: 500; } /* Collapse button on the right */ .nav-icon-btn.collapse-btn { margin-left: auto; } /* Empty hint */ .sidebar-item.empty-hint { color: var(--text-dim); font-size: 12px; cursor: default; } .sidebar-item.empty-hint:hover { background: none; } .sidebar-item.empty-hint .page-name { font-size: 12px; } /* Sections */ .sidebar-section { padding: var(--space-xs) var(--space-md); } .sidebar-section-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; border-radius: var(--radius-sm); transition: background var(--transition); } .sidebar-section-header:hover { background: var(--bg-hover); } .sidebar-section-title { display: flex; align-items: center; gap: var(--space-xs); font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: none; letter-spacing: 0; } .sidebar-section-title .chevron { font-size: 10px; transition: transform var(--transition); } .sidebar-section-title .chevron.open { transform: rotate(90deg); } .sidebar-section-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity var(--transition); } .sidebar-section-header:hover .sidebar-section-actions { opacity: 1; } .section-action-btn { width: 22px; height: 22px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; transition: background var(--transition); } .section-action-btn:hover { background: var(--bg-tertiary); } /* Sidebar items (pages) */ .sidebar-items { list-style: none; } .sidebar-item { position: relative; display: flex; align-items: center; gap: var(--space-sm); padding: 3px 6px; padding-left: 8px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); min-height: 28px; } .sidebar-item:hover { background: var(--bg-hover); } .sidebar-item.active { background: var(--bg-active); } /* Tree toggle button (▶/▼ chevron) */ .tree-toggle { width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 9px; flex-shrink: 0; transition: transform 0.15s ease, background var(--transition); padding: 0; margin: 0; background: none; border: none; } .tree-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); } .tree-toggle.expanded { transform: rotate(90deg); } .tree-toggle-placeholder { width: 18px; height: 18px; flex-shrink: 0; } /* Tree children wrapper */ .tree-children-wrapper { list-style: none; } .tree-children-wrapper .sidebar-items { padding-left: 0; } .sidebar-item .page-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; cursor: grab; } .sidebar-item:active .page-icon { cursor: grabbing; } .sidebar-item .page-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-item .item-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity var(--transition); } .sidebar-item:hover .item-actions { opacity: 1; } .item-action-btn { width: 22px; height: 22px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; transition: background var(--transition); } .item-action-btn:hover { background: var(--bg-tertiary); } /* Sidebar footer */ .sidebar-footer { margin-top: auto; padding: var(--space-sm) var(--space-md); } .sidebar-invite { background: var(--bg-hover); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-sm); position: relative; } .sidebar-invite-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; } .sidebar-invite-desc { font-size: 12px; color: var(--text-secondary); } .sidebar-invite-close { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 12px; } .sidebar-new-chat { display: flex; align-items: center; justify-content: space-between; padding: 6px var(--space-md); background: var(--bg-hover); border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); width: 100%; transition: background var(--transition); } .sidebar-new-chat:hover { background: var(--bg-tertiary); } .sidebar-new-chat .shortcut { font-size: 12px; color: var(--text-secondary); } /* ═══════════════════════════════════════════════════════════ CONTEXT MENU ═══════════════════════════════════════════════════════════ */ .context-menu { position: fixed; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.4); min-width: 200px; padding: var(--space-xs) 0; z-index: 1000; display: none; } .context-menu.visible { display: block; } .context-menu-section { padding: 2px 0; } .context-menu-section + .context-menu-section { border-top: 1px solid var(--border); } .context-menu-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px var(--space-md); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); white-space: nowrap; } .context-menu-item:hover { background: var(--bg-hover); } .context-menu-item .menu-icon { width: 18px; text-align: center; font-size: 14px; } .context-menu-item .menu-shortcut { margin-left: auto; color: var(--text-dim); font-size: 12px; } .context-menu-label { padding: 4px var(--space-md); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; } /* ═══════════════════════════════════════════════════════════ TOOLTIP ═══════════════════════════════════════════════════════════ */ .tooltip { position: fixed; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 12px; color: var(--text-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 2000; pointer-events: none; display: none; white-space: nowrap; } /* ═══════════════════════════════════════════════════════════ MAIN CONTENT ═══════════════════════════════════════════════════════════ */ .main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; } /* Topbar */ .topbar { display: flex; align-items: center; height: var(--topbar-height); min-height: var(--topbar-height); padding: 0 var(--space-lg); gap: var(--space-md); flex-shrink: 0; } .topbar-left { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; } .topbar-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-sm); min-width: 0; } .topbar-page-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; color: var(--text-primary); } .topbar-page-title .page-icon { font-size: 16px; } .topbar-page-status { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; } .topbar-right { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; } .topbar-btn { height: 28px; min-width: 28px; padding: 0 8px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); transition: background var(--transition), color var(--transition); } .topbar-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .topbar-btn.share-btn { background: var(--bg-tertiary); color: var(--text-primary); padding: 0 12px; } .topbar-btn.share-btn:hover { background: var(--bg-hover); } .topbar-breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-secondary); } .topbar-breadcrumb a:hover { color: var(--text-primary); } /* Content area */ .content-area { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0; } /* Page header */ .page-header { padding: var(--space-xl) var(--space-xl) var(--space-md); } .page-cover { width: 100%; height: 160px; background: linear-gradient(135deg, #2a2a2a, #333333); border-radius: 0; position: relative; margin-bottom: 0; } .page-cover-actions { position: absolute; top: var(--space-sm); right: var(--space-sm); display: flex; gap: var(--space-xs); } .cover-btn { padding: 4px 10px; background: var(--bg-tertiary); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-primary); transition: background var(--transition); } .cover-btn:hover { background: var(--bg-hover); } .page-title-area { padding: 0 var(--space-xl); margin-bottom: var(--space-sm); } .page-title { display: flex; align-items: center; gap: var(--space-sm); } .page-title .page-icon-lg { font-size: 32px; } .page-title h1 { font-size: 32px; font-weight: 700; color: var(--text-primary); border: none; background: none; outline: none; padding: 4px 0; } .page-description { padding: 0 var(--space-xl); margin-bottom: var(--space-md); font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 800px; } /* View tabs */ .view-tabs { display: flex; align-items: center; gap: 2px; padding: 0 var(--space-xl); margin-bottom: var(--space-xs); border-bottom: 1px solid var(--border); overflow-x: auto; } .view-tab { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; color: var(--text-secondary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: background var(--transition), color var(--transition); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; } .view-tab:hover { background: var(--bg-hover); color: var(--text-primary); } .view-tab.active { color: var(--text-primary); background: var(--bg-tertiary); border-bottom-color: var(--text-primary); } .view-tab .tab-icon { font-size: 14px; } .view-toolbar { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-xl); flex-shrink: 0; } .view-toolbar-spacer { flex: 1; } .toolbar-btn { height: 28px; min-width: 28px; padding: 0 8px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); transition: background var(--transition), color var(--transition); } .toolbar-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .toolbar-btn.active { background: var(--bg-active); color: var(--text-primary); } .btn-new { background: var(--blue) !important; color: #FFFFFF !important; padding: 6px 12px !important; border-radius: var(--radius-sm); font-weight: 500; height: 28px; } .btn-new:hover { opacity: 0.9; } /* ═══════════════════════════════════════════════════════════ KANBAN ═══════════════════════════════════════════════════════════ */ .kanban-container { display: flex; gap: 0; padding: 0 var(--space-sm); overflow-x: auto; overflow-y: hidden; flex: 1; min-height: 0; } .kanban-column { min-width: 260px; max-width: 320px; flex: 1; display: flex; flex-direction: column; padding: 0 var(--space-xs); } .kanban-column-header { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition); } .kanban-column-header:hover { background: var(--bg-hover); } .kanban-column-header .col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .kanban-column-header .col-count { font-weight: 400; color: var(--text-dim); margin-left: auto; } /* Group headers */ .kanban-group-header { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); font-size: 13px; font-weight: 600; color: var(--text-primary); border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); margin-top: var(--space-sm); } .kanban-group-header:hover { background: var(--bg-hover); } .kanban-group-header .group-chevron { font-size: 10px; transition: transform var(--transition); color: var(--text-dim); } .kanban-group-header .group-count { font-weight: 400; color: var(--text-dim); margin-left: auto; } /* Cards */ .kanban-cards { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-xs) 0; min-height: 20px; } .kanban-card { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--border); cursor: grab; transition: box-shadow var(--transition), border-color var(--transition); position: relative; } .kanban-card:hover { border-color: var(--border-light); box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .kanban-card:active { cursor: grabbing; } .kanban-card .card-header { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: 8px; } .kanban-card .card-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; } .kanban-card .card-title { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.4; word-break: break-word; } .kanban-card .card-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 12px; color: var(--text-secondary); margin-top: var(--space-xs); } .kanban-card .card-assignee { display: flex; align-items: center; gap: 4px; } .kanban-card .card-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; } .kanban-card .card-date { display: flex; align-items: center; gap: 4px; } .kanban-card .card-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; } /* Card colors by status */ .card-status-todo { background: var(--bg-secondary); border-left: 3px solid var(--gray); } .card-status-progress { background: var(--blue-bg); border-left: 3px solid var(--blue); } .card-status-complete { background: var(--green-bg); border-left: 3px solid var(--green); } /* New card button */ .kanban-new-card { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md); color: var(--text-secondary); font-size: 13px; cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); } .kanban-new-card:hover { background: var(--bg-hover); color: var(--text-primary); } .kanban-new-group { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); color: var(--text-secondary); font-size: 13px; cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition); margin-top: var(--space-sm); } .kanban-new-group:hover { background: var(--bg-hover); } /* ═══════════════════════════════════════════════════════════ TABLE VIEW ═══════════════════════════════════════════════════════════ */ .table-container { padding: 0 var(--space-xl); overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; } .data-table th { text-align: left; padding: var(--space-sm) var(--space-md); font-size: 12px; font-weight: 600; color: var(--text-dim); border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; } .data-table th:hover { color: var(--text-primary); } .data-table th .th-icon { margin-right: 4px; } .data-table td { padding: var(--space-sm) var(--space-md); font-size: 14px; border-bottom: 1px solid var(--border); } .data-table tr:hover td { background: var(--bg-hover); } .table-name-cell { display: flex; align-items: center; gap: var(--space-sm); } .table-name-cell .item-icon { font-size: 16px; } /* ═══════════════════════════════════════════════════════════ STATUS OVERVIEW (Donut Chart) ═══════════════════════════════════════════════════════════ */ .status-overview { display: flex; flex-direction: column; align-items: center; padding: var(--space-xl); gap: var(--space-xl); } .donut-container { position: relative; width: 200px; height: 200px; } .donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } .donut-total { font-size: 36px; font-weight: 700; color: var(--text-primary); } .donut-label { font-size: 12px; color: var(--text-secondary); } .status-legend { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; } .legend-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--text-secondary); } .legend-dot { width: 10px; height: 10px; border-radius: 50%; } /* ═══════════════════════════════════════════════════════════ TEAM LOAD (Barres) ═══════════════════════════════════════════════════════════ */ .team-load { display: flex; align-items: flex-end; gap: var(--space-xl); padding: var(--space-xl); min-height: 300px; } .team-member { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); } .team-bar-stack { display: flex; flex-direction: column-reverse; width: 48px; border-radius: var(--radius-sm); overflow: hidden; min-height: 40px; } .team-bar-segment { width: 100%; transition: height var(--transition); } .team-bar-segment.todo { background: var(--blue); } .team-bar-segment.progress { background: var(--orange); } .team-bar-segment.done { background: var(--green); } .team-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-primary); } .team-count { font-size: 12px; font-weight: 600; color: var(--text-primary); } /* ═══════════════════════════════════════════════════════════ FILTERS & SORT PANELS ═══════════════════════════════════════════════════════════ */ .filter-bar { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-xl); flex-wrap: wrap; min-height: 32px; } .filter-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--bg-tertiary); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); } .filter-pill:hover { background: var(--bg-hover); } .filter-pill .remove-filter { font-size: 14px; opacity: 0.6; } .filter-pill .remove-filter:hover { opacity: 1; } .filter-add-btn { padding: 3px 8px; font-size: 12px; color: var(--text-secondary); border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); } .filter-add-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .filter-reset-btn { margin-left: auto; padding: 3px 8px; font-size: 12px; color: var(--text-secondary); border-radius: var(--radius-sm); transition: color var(--transition); } .filter-reset-btn:hover { color: var(--red); } /* Panel dropdown */ .dropdown-panel { position: absolute; top: 100%; left: 0; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.4); min-width: 220px; z-index: 100; display: none; } .dropdown-panel.visible { display: block; } .dropdown-search { padding: var(--space-sm); } .dropdown-search input { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px var(--space-sm); font-size: 13px; color: var(--text-primary); outline: none; } .dropdown-search input:focus { border-color: var(--blue); } .dropdown-option-list { max-height: 240px; overflow-y: auto; } .dropdown-option { display: flex; align-items: center; gap: var(--space-sm); padding: 6px var(--space-md); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); } .dropdown-option:hover { background: var(--bg-hover); } .dropdown-option .option-icon { width: 18px; text-align: center; } .dropdown-option .option-checkbox { width: 16px; height: 16px; border: 1px solid var(--text-dim); border-radius: 3px; display: flex; align-items: center; justify-content: center; transition: background var(--transition), border-color var(--transition); } .dropdown-option.selected .option-checkbox { background: var(--blue); border-color: var(--blue); } .dropdown-option .option-color-dot { width: 8px; height: 8px; border-radius: 50%; } .dropdown-footer { padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--border); } .dropdown-footer button { font-size: 12px; color: var(--text-secondary); cursor: pointer; } .dropdown-footer button:hover { color: var(--text-primary); } /* Sort panel */ .sort-panel { position: relative; } .sort-list { padding: var(--space-xs) 0; } .sort-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px var(--space-md); } .sort-item .sort-field { display: flex; align-items: center; gap: var(--space-sm); flex: 1; font-size: 13px; } .sort-item .sort-direction { font-size: 12px; color: var(--text-secondary); cursor: pointer; padding: 2px 6px; border-radius: var(--radius-sm); } .sort-item .sort-direction:hover { background: var(--bg-hover); } .sort-delete { color: var(--text-dim); cursor: pointer; font-size: 14px; padding: 2px 4px; } .sort-delete:hover { color: var(--red); } /* ═══════════════════════════════════════════════════════════ MODAL / DIALOG ═══════════════════════════════════════════════════════════ */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 500; } .modal-container { background: var(--bg-modal); border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(0,0,0,0.5); max-width: 600px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); } .modal-header h3 { font-size: 16px; font-weight: 600; } .modal-close { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-secondary); cursor: pointer; transition: background var(--transition); } .modal-close:hover { background: var(--bg-hover); } .modal-body { padding: var(--space-lg); overflow-y: auto; } /* ═══════════════════════════════════════════════════════════ UTILITIES ═══════════════════════════════════════════════════════════ */ .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .gap-xs { gap: var(--space-xs); } .gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .text-dim { color: var(--text-secondary); } .text-xs { font-size: 12px; } .text-sm { font-size: 13px; } .font-semibold { font-weight: 600; } /* Library table */ .library-table-header { display: flex; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-dim); } .library-table-row { display: flex; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--text-primary); border-radius: 6px; transition: background 0.15s; } .library-table-row:hover { background: var(--bg-hover); } .lib-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lib-col-name { flex: 1.5; display: flex; align-items: center; gap: 10px; } .lib-col-author { width: 140px; font-size: 13px; color: var(--text-dim); } .lib-col-source { width: 120px; font-size: 13px; color: var(--text-dim); } .lib-col-edited { width: 140px; font-size: 13px; color: var(--text-dim); } .lib-col-visited { width: 140px; font-size: 13px; color: var(--text-dim); } .lib-empty { text-align: center; padding: 48px; color: var(--text-dim); } .lib-empty h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); } .lib-empty p { font-size: 13px; } /* Trash */ .trash-filter { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--text-primary); background: var(--bg-tertiary); transition: background 0.15s; } .trash-filter:hover { background: var(--bg-hover); } .trash-filter.active { color: #5b9bd5; background: rgba(91,155,213,0.1); } .trash-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; transition: background 0.15s; } .trash-item:hover { background: var(--bg-hover); } .trash-item-icon { font-size: 18px; flex-shrink: 0; } .trash-item-info { flex: 1; min-width: 0; } .trash-item-name { display: block; font-size: 14px; color: var(--text-primary); font-weight: 500; } .trash-item-path { display: block; font-size: 12px; color: var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .trash-item-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-secondary); transition: background 0.15s; } .trash-item-btn:hover { background: var(--bg-tertiary); } .ml-auto { margin-left: auto; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--border-light); } /* Sortable ghost */ .sortable-ghost { opacity: 0.4; } .sortable-drag { box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important; } /* ═══════════════════════════════════════════════════════════ NOTION-STYLE BLOCK EDITOR ═══════════════════════════════════════════════════════════ */ /* Editor wrapper */ .page-editor-wrapper { flex: 1; overflow-y: auto; padding: 0; min-height: 0; } /* Page title area */ .page-cover-area { padding: 48px 64px 12px; max-width: 900px; margin: 0 auto; } .page-title-block { display: flex; align-items: flex-start; gap: 8px; } .page-icon-emoji { font-size: 36px; cursor: pointer; flex-shrink: 0; padding-top: 2px; user-select: none; } .page-title-input { flex: 1; font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--text-primary); outline: none; min-height: 50px; padding: 0; border: none; word-break: break-word; } .page-title-input:empty::before { content: 'New page'; color: var(--text-dim); pointer-events: none; } /* Blocks container */ .blocks-container { padding: 8px 64px 96px; max-width: 900px; margin: 0 auto; min-height: 300px; } .blocks-empty { padding: 40px 0; text-align: center; } .blocks-empty-hint { color: var(--text-dim); font-size: 15px; } /* Block wrapper */ .block-wrapper { position: relative; display: flex; align-items: flex-start; gap: 4px; padding: 2px 0; margin: 1px 0; border-radius: 4px; transition: background 0.1s ease; } .block-wrapper:hover { background: rgba(255,255,255,0.02); } /* 6-dot drag handle */ .block-handle { position: absolute; left: -40px; top: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: grab; opacity: 0; transition: opacity 0.15s ease; border-radius: 3px; fill: var(--text-dim); } .block-handle.visible { opacity: 1; } .block-handle:hover { background: var(--bg-hover); fill: var(--text-secondary); } .block-handle:active { cursor: grabbing; } /* Block actions (+ button) */ .block-actions { position: absolute; right: -60px; top: 2px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s ease; } .block-actions.visible { opacity: 1; } .block-add-btn { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 16px; cursor: pointer; transition: background 0.1s; } .block-add-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .block-drag-btn { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 11px; cursor: grab; transition: background 0.1s; } .block-drag-btn:hover { background: var(--bg-hover); color: var(--text-primary); } /* Block content (base) */ .block-content { flex: 1; font-size: 16px; line-height: 1.6; color: var(--text-primary); outline: none; padding: 3px 2px; min-height: 28px; word-break: break-word; } .block-content.empty::before { content: attr(data-placeholder); color: #9B9A97; pointer-events: none; font-style: normal; } /* Headings */ .block-h1 { font-size: 32px; font-weight: 700; line-height: 1.2; padding: 8px 2px 4px; } .block-h2 { font-size: 24px; font-weight: 600; line-height: 1.3; padding: 6px 2px 3px; } .block-h3 { font-size: 20px; font-weight: 600; line-height: 1.3; padding: 4px 2px 2px; } .block-h4 { font-size: 16px; font-weight: 600; line-height: 1.4; padding: 4px 2px 2px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); } /* Bulleted list */ .block-bullet { padding-left: 18px; position: relative; } .block-bullet::before { content: '\2022'; position: absolute; left: 2px; top: 3px; color: var(--text-primary); font-size: 16px; } /* Numbered list */ .block-numbered { padding-left: 22px; position: relative; } /* To-do */ .block-todo { display: flex; align-items: flex-start; gap: 6px; padding: 2px 2px; } .block-todo .todo-checkbox { margin-top: 5px; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; } .block-todo div { flex: 1; outline: none; font-size: 16px; line-height: 1.6; min-height: 26px; word-break: break-word; } .block-content.empty::before { content: attr(data-placeholder); color: #9B9A97; pointer-events: none; font-style: normal; } /* Toggle */ .block-toggle { display: flex; align-items: flex-start; gap: 4px; } .toggle-chevron { width: 20px; height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 10px; cursor: pointer; flex-shrink: 0; margin-top: 4px; transition: transform 0.2s ease; } .toggle-chevron.open { transform: rotate(90deg); } .toggle-chevron:hover { background: var(--bg-hover); } .block-toggle div { flex: 1; outline: none; font-size: 16px; line-height: 1.6; min-height: 26px; word-break: break-word; } .block-content.empty::before { content: attr(data-placeholder); color: #9B9A97; pointer-events: none; font-style: normal; } /* Quote */ .block-quote { border-left: 3px solid var(--text-primary); padding: 4px 14px; margin: 4px 0; } /* Code block */ .block-code { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; margin: 8px 0; overflow: hidden; } .code-lang-label { padding: 4px 12px; font-size: 12px; color: var(--text-dim); background: var(--bg-tertiary); border-bottom: 1px solid var(--border); } .block-code pre { margin: 0; padding: 12px 16px; overflow-x: auto; } .block-code code { outline: none; font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace; font-size: 14px; line-height: 1.5; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; display: block; min-height: 28px; } .block-code code:empty::before { content: 'Type code...'; color: #9B9A97; } /* Divider */ .block-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; width: 100%; } /* Callout */ .block-callout { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 4px; margin: 4px 0; } .block-callout .callout-icon { font-size: 20px; flex-shrink: 0; } .block-callout div { flex: 1; outline: none; font-size: 16px; line-height: 1.6; min-height: 24px; } .block-content.empty::before { content: attr(data-placeholder); color: #9B9A97; pointer-events: none; font-style: normal; } /* Image block */ .block-image-wrapper { margin: 8px 0; } .image-placeholder { display: flex; align-items: center; justify-content: center; min-height: 120px; background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: 4px; color: var(--text-dim); cursor: pointer; transition: background 0.15s; } .image-placeholder:hover { background: var(--bg-hover); } /* SLASH COMMAND MENU */ .slash-menu { position: fixed; z-index: 999; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); width: 320px; max-height: 400px; overflow: hidden; display: flex; flex-direction: column; } .slash-search { padding: 8px; border-bottom: 1px solid var(--border); } .slash-search input { width: 100%; padding: 6px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 14px; outline: none; } .slash-search input:focus { border-color: var(--blue); } .slash-groups { overflow-y: auto; padding: 4px 0; } .slash-group { padding: 0; } .slash-group + .slash-group { border-top: 1px solid var(--border); } .slash-group-label { padding: 6px 12px 4px; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; } .slash-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; font-size: 14px; color: var(--text-primary); text-align: left; cursor: pointer; transition: background 0.1s; border-radius: 0; } .slash-item:hover, .slash-item.selected { background: var(--bg-hover); } .slash-item-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--bg-secondary); border-radius: 4px; flex-shrink: 0; } .slash-item-info { flex: 1; display: flex; flex-direction: column; } .slash-item-name { font-weight: 500; font-size: 14px; } .slash-item-desc { font-size: 12px; color: var(--text-dim); } .slash-item-shortcut { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); flex-shrink: 0; } /* FORMAT TOOLBAR (FLOATING) */ .format-toolbar { position: fixed; z-index: 998; display: flex; align-items: center; gap: 2px; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); padding: 4px 6px; } .format-toolbar button { width: 30px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 14px; cursor: pointer; transition: background 0.1s; } .format-toolbar button:hover { background: var(--bg-hover); } .format-separator { width: 1px; height: 18px; background: var(--border); margin: 0 4px; } /* EDITOR STATUSBAR */ .editor-statusbar { position: fixed; bottom: 0; right: 0; left: var(--sidebar-width); display: flex; align-items: center; justify-content: space-between; padding: 4px 16px; background: var(--bg-primary); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); z-index: 50; height: 28px; } .statusbar-right { display: flex; gap: 16px; } /* Inline formatting inside blocks */ .block-content strong { font-weight: 700; } .block-content em { font-style: italic; } .block-content code { background: var(--bg-tertiary); padding: 1px 4px; border-radius: 3px; font-size: 0.9em; font-family: var(--font-mono); color: var(--pink); } .block-content s { text-decoration: line-through; } .block-content u { text-decoration: underline; } .block-content a { color: var(--blue); text-decoration: underline; } /* Mobile adjustments */ @media (max-width: 768px) { .page-cover-area { padding: 32px 16px 8px; } .page-title-input { font-size: 28px; } .blocks-container { padding: 8px 16px 96px; } .block-handle { display: none; } .block-actions { display: none; } .editor-statusbar { left: 0; } } /* ═══════════ Get Started Toolbar (bottom, pill buttons) ═══════════ */ .get-started-toolbar { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 12px 0 16px; flex-wrap: wrap; justify-content: center; z-index: 10; pointer-events: auto; } .gs-label { font-size: 13px; color: var(--text-dim); margin-right: 4px; } .gs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 9999px; color: var(--text-primary); font-size: 13px; cursor: pointer; white-space: nowrap; transition: background 0.15s; } .gs-pill:hover { background: var(--bg-hover); } .gs-icon { font-size: 15px; } .gs-pill .chevron-down { font-size: 10px; opacity: 0.5; } .gs-more-dropdown { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); min-width: 180px; z-index: 100; padding: 4px 0; } .gs-more-item { padding: 8px 14px; font-size: 13px; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 8px; } .gs-more-item:hover { background: var(--bg-hover); } .gs-more-sep { height: 1px; background: var(--border); margin: 4px 0; } /* ═══════════ Page Editor — Top Bar ═══════════ */ .page-topbar { display: flex; align-items: center; justify-content: flex-end; padding: 6px 0; min-height: 36px; } .page-topbar-right { display: flex; align-items: center; gap: 4px; position: relative; } .topbar-edited { font-size: 12px; color: var(--text-dim); margin-right: 8px; } .page-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: none; border-radius: 6px; background: transparent; color: var(--text-primary); font-size: 13px; cursor: pointer; white-space: nowrap; } .page-action-btn:hover { background: var(--bg-hover); } .share-btn { font-weight: 500; } .page-action-btn .chevron-down { font-size: 9px; opacity: 0.5; margin-left: 2px; } .star-btn { font-size: 16px; padding: 4px 8px; } .star-btn .starred { color: #f5c542; } /* ═══════════ Share / Publish Dialog ═══════════ */ .share-dialog { position: absolute; top: calc(100% + 8px); right: 0; width: 440px; max-height: 70vh; overflow-y: auto; background: #1F1F1F; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: 0 12px 48px rgba(0,0,0,0.6); z-index: 200; } /* Header with tabs */ .sd-header { display: flex; align-items: center; height: 56px; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.06); } .sd-tab { height: 56px; padding: 0 14px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer; background: none; border: none; color: rgba(255,255,255,.5); position: relative; transition: color 150ms ease; } .sd-tab.active { color: #fff; } .sd-tab.active::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: #fff; transition: 200ms ease; } .sd-tab:hover { color: rgba(255,255,255,.8); } .sd-badge { width: 6px; height: 6px; border-radius: 999px; background: #2383E2; display: inline-block; } .sd-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.5); font-size: 16px; cursor: pointer; padding: 8px; border-radius: 6px; } .sd-close:hover { background: rgba(255,255,255,.06); color: #fff; } /* Body */ .sd-body { padding: 16px 20px; } /* Invite row */ .sd-invite-row { display: flex; gap: 8px; margin-bottom: 12px; } .sd-input { flex: 1; height: 40px; padding: 0 14px; background: #262626; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: #fff; font-size: 13px; outline: none; transition: border-color 150ms, box-shadow 150ms; } .sd-input::placeholder { color: rgba(255,255,255,.45); } .sd-input:focus { border-color: #2383E2; box-shadow: 0 0 0 1px #2383E2; } .sd-btn-primary { height: 40px; padding: 0 16px; background: #2383E2; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 150ms ease; white-space: nowrap; } .sd-btn-primary:hover { background: #2C8CEB; } .sd-btn-full { width: 100%; height: 46px; font-size: 14px; } /* Context card */ .sd-context-card { background: #2B2B2B; border-radius: 12px; padding: 12px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 12px; } /* Section */ .sd-section { margin: 8px 0; } .sd-section-title { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 6px; } .sd-sep { height: 1px; background: rgba(255,255,255,.06); margin: 12px 0; } /* Access button */ .sd-access-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: #fff; font-size: 13px; cursor: pointer; } .sd-access-btn:hover { background: rgba(255,255,255,.08); } .sd-access-menu { position: absolute; top: calc(100% + 2px); left: 0; right: 0; background: #2A2A2A; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 210; padding: 4px 0; } /* Permissions */ .sd-select-sm { padding: 4px 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; color: #fff; font-size: 12px; outline: none; } /* Participants */ .sd-participants { margin-bottom: 8px; } .sd-participant { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; } .sd-participant-info { display: flex; align-items: center; gap: 10px; } .sd-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2383E2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; } .sd-participant-name { font-size: 14px; font-weight: 500; color: #fff; } .sd-participant-email { font-size: 13px; color: rgba(255,255,255,.6); } .sd-perm-btn { padding: 4px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; color: rgba(255,255,255,.6); font-size: 12px; cursor: pointer; } .sd-perm-btn:hover { background: rgba(255,255,255,.08); } .sd-perm-menu { position: absolute; top: 100%; right: 0; width: 280px; background: #2A2A2A; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 211; padding: 4px 0; } .sd-perm-option { padding: 10px 16px; cursor: pointer; display: flex; flex-direction: column; } .sd-perm-option span:first-child { font-size: 14px; color: #fff; } .sd-perm-option:hover { background: #343434; } .sd-perm-option.active { background: rgba(35,131,226,.15); } .sd-perm-option.danger:hover { background: rgba(224,62,62,.15); } .sd-perm-option.danger span:first-child { color: #e03e3e; } .sd-perm-desc { font-size: 12px !important; color: rgba(255,255,255,.45) !important; margin-top: 2px; } .sd-perm-sep { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; } /* Footer */ .sd-footer { display: flex; align-items: center; justify-content: space-between; } .sd-footer-link { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; } .sd-footer-link:hover { color: #fff; } .sd-footer-action { padding: 6px 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; } .sd-footer-action:hover { background: rgba(255,255,255,.1); } /* Publish tab */ .sd-publish-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0; } .sd-publish-preview { width: 100%; height: 200px; background: #262626; border-radius: 12px; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .sd-preview-bar { width: 100%; height: 32px; background: rgba(255,255,255,.04); border-radius: 12px 12px 0 0; display: flex; align-items: center; padding: 0 12px; gap: 6px; } .sd-preview-title { font-size: 16px; color: rgba(255,255,255,.6); margin-top: 20px; } .sd-publish-heading { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 8px; } .sd-publish-desc { font-size: 13px; color: rgba(255,255,255,.55); margin: 0 0 16px; line-height: 1.5; } .sd-publish-note { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 12px; } /* URL bar (after publish) */ .sd-url-bar { display: flex; align-items: center; gap: 8px; padding: 8px; background: rgba(255,255,255,.04); border-radius: 10px; } .sd-url-input { flex: 1; height: 32px; padding: 0 10px; background: transparent; border: none; color: rgba(255,255,255,.6); font-size: 13px; outline: none; } /* Settings rows */ .sd-settings { margin: 4px 0; } .sd-setting-row { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 4px; font-size: 14px; color: #fff; cursor: pointer; border-radius: 6px; } .sd-setting-row:hover { background: #2F2F2F; } .sd-danger-btn { width: 100%; padding: 10px; background: none; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: rgba(255,255,255,.55); font-size: 13px; cursor: pointer; } .sd-danger-btn:hover { background: rgba(224,62,62,.1); color: #e03e3e; } /* Toast */ .sd-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 300; } /* ── More menu dropdown ── */ .more-menu { position: absolute; top: calc(100% + 4px); right: 0; background: #2A2A2A; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); min-width: 200px; z-index: 100; padding: 4px 0; } .more-menu-item { padding: 8px 14px; font-size: 13px; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; } .more-menu-item:hover { background: rgba(255,255,255,.06); } .more-menu-item.danger { color: #e03e3e; } .more-menu-sep { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; } /* ── Toggle switch ── */ .toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; } .toggle-switch.sm { width: 32px; height: 18px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; inset: 0; cursor: pointer; background: #555; border-radius: 20px; transition: background 150ms ease; } .toggle-slider:before { content: ''; position: absolute; height: 16px; width: 16px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: transform 150ms ease; } .toggle-switch input:checked + .toggle-slider { background: #2383E2; } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); } .toggle-switch.sm { width: 32px; height: 18px; } .toggle-switch.sm .toggle-slider:before { height: 14px; width: 14px; } .toggle-switch.sm input:checked + .toggle-slider:before { transform: translateX(14px); } /* ═══════════ Empty Page Toolbar ═══════════ */ .empty-page-toolbar { display: flex; align-items: center; gap: 6px; padding: 12px 0; flex-wrap: wrap; } .empty-toolbar-label { font-size: 13px; color: var(--text-dim); margin-right: 6px; } .empty-toolbar-item { padding: 6px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 13px; cursor: pointer; white-space: nowrap; } .empty-toolbar-item:hover { background: var(--bg-hover); border-color: var(--text-dim); }