/* ======================================== PanConverter v1.7.1 - Modern UI Glassmorphism, Gradients & Animations ======================================== */ /* Modern Color Palette */ :root { /* Primary Brand Colors - Purple-Blue Gradient */ --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --primary-light: #8b9aff; --primary-dark: #5661b3; /* Accent Colors */ --accent-green: #10b981; --accent-blue: #3b82f6; --accent-purple: #8b5cf6; --accent-pink: #ec4899; /* Semantic Colors */ --success: #10b981; --warning: #f59e0b; --error: #ef4444; --info: #3b82f6; /* Neutral Colors */ --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827; /* Semantic UI Colors (Light Theme Default) */ --text-primary: #1f2937; --text-secondary: #6b7280; --text-muted: #9ca3af; --bg-primary: #ffffff; --bg-secondary: #f9fafb; --bg-tertiary: #f3f4f6; --border-color: #e5e7eb; --border-color-strong: #d1d5db; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Glassmorphism */ --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(255, 255, 255, 0.18); --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Effects */ --blur-amount: 10px; --transition-speed: 0.3s; --transition-ease: cubic-bezier(0.4, 0, 0.2, 1); } /* Base styles - Reset is in styles.css */ body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; overflow: hidden; height: 100vh; /* Background controlled by themes - do not set here */ color: var(--gray-900); } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .container { display: flex; flex-direction: column; height: 100vh; padding: 4px 8px; gap: 2px; } /* Glass Container for main content */ .main-content-glass { background: var(--glass-bg); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow); overflow: hidden; flex: 1; display: flex; flex-direction: column; } /* Tab Bar - Modern Glassmorphism */ .tab-bar { display: flex; align-items: center; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); padding: 4px 8px; min-height: 36px; gap: 4px; border-radius: 8px; } .tab { display: flex; align-items: center; padding: 8px 16px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; margin-right: 4px; cursor: pointer; user-select: none; max-width: 200px; min-width: 120px; transition: all var(--transition-speed) var(--transition-ease); transform: translateY(0); } .tab:hover { background: rgba(0, 0, 0, 0.05); } .tab.active { background: #ffffff; color: #24292e; border-bottom: 2px solid #0366d6; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); } .tab-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; } .tab-close { background: rgba(255, 255, 255, 0.2); border: none; font-size: 14px; font-weight: bold; cursor: pointer; padding: 4px; margin-left: 8px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: currentColor; transition: all var(--transition-speed) var(--transition-ease); } .tab-close:hover { background: rgba(255, 255, 255, 0.4); transform: rotate(90deg); } .new-tab-button { background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--gray-700); transition: all var(--transition-speed) var(--transition-ease); display: flex; align-items: center; gap: 6px; } .new-tab-button:hover { background: rgba(255, 255, 255, 0.5); transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Toolbar - Modern Gradient Buttons */ .toolbar { display: flex; align-items: center; padding: 4px 8px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); gap: 2px; border-radius: 8px; } .toolbar button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid transparent; background: transparent; border-radius: 6px; cursor: pointer; transition: all 0.15s ease; color: #586069; } .toolbar button:hover { background: rgba(0, 0, 0, 0.06); color: #24292e; } .toolbar button:active { background: rgba(0, 0, 0, 0.1); transform: scale(0.95); } .toolbar-separator { width: 1px; height: 24px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent); margin: 0 8px; } /* Tab Content */ .tab-content { display: flex; flex: 1; overflow: hidden; } .tab-content:not(.active) { display: none; } /* Editor Container */ .editor-container { display: flex; flex: 1; overflow: hidden; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); border-radius: 0 0 20px 20px; } .pane { flex: 1; overflow: auto; min-width: 0; } .pane:first-child { border-right: 1px solid rgba(255, 255, 255, 0.3); } /* Custom Scrollbar */ .pane::-webkit-scrollbar, .editor-textarea::-webkit-scrollbar { width: 10px; height: 10px; } .pane::-webkit-scrollbar-track, .editor-textarea::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 10px; } .pane::-webkit-scrollbar-thumb, .editor-textarea::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.25); border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); } .pane::-webkit-scrollbar-thumb:hover, .editor-textarea::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.4); } .editor-textarea { width: 100%; height: 100%; padding: 24px; font-family: var(--font-mono-active); font-size: 15px; line-height: 1.7; border: none; outline: none; resize: none; background: transparent; /* Color controlled by theme */ } /* CodeMirror container */ .codemirror-container { height: 100%; overflow: auto; } .codemirror-container .cm-editor { height: 100%; font-family: var(--font-mono-active); font-size: 14px; } .codemirror-container .cm-scroller { overflow: auto; } .pane:last-child { padding: 0; /* Background controlled by theme */ } .preview-content { max-width: none; margin: 0; padding: 24px 32px; line-height: 1.8; font-size: 15px; /* Color controlled by theme */ } /* Status Bar */ .status-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px; /* Background and color controlled by theme */ font-size: 12px; font-weight: 500; min-height: 24px; flex-shrink: 0; } /* Preview Styles - Modern Typography */ .preview-content h1, .preview-content h2, .preview-content h3 { /* Color controlled by theme */ font-weight: 700; margin-top: 28px; margin-bottom: 16px; line-height: 1.3; } .preview-content h1 { font-size: 2.5em; border-bottom: 3px solid #e1e4e8; padding-bottom: 12px; } .preview-content h2 { font-size: 2em; border-bottom: 2px solid #e1e4e8; padding-bottom: 10px; } .preview-content p { margin-bottom: 18px; line-height: 1.8; } .preview-content code { padding: 3px 8px; margin: 0 2px; font-size: 90%; background: rgba(175, 184, 193, 0.2); border: 1px solid #e1e4e8; border-radius: 6px; font-family: var(--font-mono-active); font-weight: 500; } .preview-content pre { padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .preview-content pre code { background: transparent; border: none; padding: 0; margin: 0; } .preview-content blockquote { padding: 16px 20px; color: var(--gray-700); border-left: 4px solid #e1e4e8; margin-bottom: 20px; background: #f6f8fa; border-radius: 0 8px 8px 0; font-style: italic; } .preview-content a { color: #0366d6; text-decoration: none; font-weight: 600; position: relative; transition: color var(--transition-speed); } .preview-content a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: #0366d6; transition: width var(--transition-speed) var(--transition-ease); } .preview-content a:hover { color: #0366d6; } .preview-content a:hover::after { width: 100%; } .preview-content table { border-collapse: separate; border-spacing: 0; margin-bottom: 20px; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .preview-content table th, .preview-content table td { padding: 12px 16px; border: 1px solid #e1e4e8; } .preview-content table th { font-weight: 600; background: #f0f0f0; color: #333333; } .preview-content table tr:nth-child(even) { background: rgba(255, 255, 255, 0.5); } /* Modern Dialogs */ .export-dialog, .batch-dialog, .find-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.3s var(--transition-ease); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .export-dialog.hidden, .batch-dialog.hidden { display: none; } .export-dialog-content, .batch-dialog-content { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto; animation: slideUpFade 0.4s var(--transition-ease); } @keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .export-dialog-header, .batch-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e1e4e8; background: #24292e; border-radius: 20px 20px 0 0; } .export-dialog-header h3, .batch-dialog-header h3 { margin: 0; font-size: 20px; font-weight: 700; color: white; } .export-dialog-body, .batch-dialog-body { padding: 24px; } .export-section, .batch-section { margin-bottom: 20px; } .export-section label, .batch-section label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); font-size: 14px; } .export-section select, .export-section input, .batch-section select, .batch-section input { width: 100%; padding: 10px 14px; border: 2px solid #e1e4e8; border-radius: 10px; font-size: 14px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(5px); transition: all var(--transition-speed) var(--transition-ease); } .export-section select:focus, .export-section input:focus, .batch-section select:focus, .batch-section input:focus { outline: none; border-color: #0366d6; box-shadow: 0 0 0 4px rgba(3, 102, 214, 0.1); background: white; } /* Modern Buttons */ .export-dialog-footer, .batch-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 24px; border-top: 1px solid #e1e4e8; background: #f6f8fa; border-radius: 0 0 20px 20px; } .export-dialog-footer button, .batch-dialog-footer button, .folder-input-group button { padding: 10px 24px; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all var(--transition-speed) var(--transition-ease); position: relative; overflow: hidden; } .export-dialog-footer button.primary, .batch-dialog-footer button.primary { background: #2ea44f; color: white; box-shadow: 0 4px 12px rgba(46, 164, 79, 0.3); } .export-dialog-footer button.primary:hover, .batch-dialog-footer button.primary:hover { transform: translateY(-2px); background: #22863a; box-shadow: 0 6px 20px rgba(34, 134, 58, 0.4); } .export-dialog-footer button:not(.primary), .batch-dialog-footer button:not(.primary), .folder-input-group button { background: #fafbfc; color: var(--gray-700); border: 1px solid #e1e4e8; } .export-dialog-footer button:not(.primary):hover, .batch-dialog-footer button:not(.primary):hover, .folder-input-group button:hover { background: #f3f4f6; border-color: #d0d7de; transform: translateY(-2px); } /* Find Dialog - Floating Modern */ .find-dialog { position: absolute; top: 70px; right: 24px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); z-index: 1000; min-width: 420px; padding: 16px; animation: slideInRight 0.3s var(--transition-ease); } @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } .find-dialog.hidden { display: none; } /* Progress Bars - Modern Gradient */ .progress-bar { width: 100%; height: 8px; background: #e1e4e8; border-radius: 10px; overflow: hidden; margin-bottom: 12px; } .progress-fill { height: 100%; background: #2ea44f; transition: width 0.4s var(--transition-ease); width: 0%; position: relative; overflow: hidden; } .progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 2s infinite; } @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* Auto-save Indicator - Modern */ .auto-save-indicator { position: fixed; top: 24px; right: 24px; background: #2ea44f; color: white; padding: 10px 20px; border-radius: 12px; font-size: 13px; font-weight: 600; z-index: 10000; box-shadow: 0 4px 20px rgba(46, 164, 79, 0.3); animation: slideInRight 0.3s ease-out; display: flex; align-items: center; gap: 8px; } .auto-save-indicator::before { content: '✓'; display: inline-block; width: 18px; height: 18px; background: white; color: #2ea44f; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; } /* Enhanced Statistics - Modern */ .enhanced-stats { font-size: 11px; color: var(--gray-600); padding: 2px 0; margin-left: 16px; font-family: var(--font-mono-active); font-weight: 500; } /* Line Numbers - Modern */ .line-numbers { min-width: 50px; padding: 12px 8px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); border-right: 1px solid #e1e4e8; font-family: var(--font-mono-active); font-size: 13px; line-height: 1.7; color: var(--gray-500); text-align: right; user-select: none; overflow: hidden; } .line-numbers.hidden { display: none; } /* Animations & Transitions */ .toolbar button, .tab, .new-tab-button, .export-dialog-footer button, .batch-dialog-footer button { position: relative; overflow: hidden; } .toolbar button::before, .tab::before, .new-tab-button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .toolbar button:hover::before, .tab:hover::before, .new-tab-button:hover::before { width: 200px; height: 200px; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 8px; gap: 8px; } .export-dialog-content, .batch-dialog-content { max-width: 95%; } .find-dialog { right: 12px; min-width: 320px; } } /* Hide default elements */ .pane.hidden { display: none; } .pane.full-width { border-right: none; } /* ======================================== Dynamic Pane Resizer Draggable splitter between editor/preview ======================================== */ .pane-resizer { width: 6px; background: linear-gradient(to right, #e1e4e8, #d0d7de, #e1e4e8); cursor: col-resize; position: relative; flex-shrink: 0; transition: background 0.2s ease; border-radius: 3px; } .pane-resizer:hover { background: linear-gradient(to right, #0366d6, #0366d6, #0366d6); } .pane-resizer:active { background: #0366d6; } .pane-resizer::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2px; height: 30px; background: rgba(0, 0, 0, 0.2); border-radius: 1px; } .pane-resizer:hover::before { background: rgba(255, 255, 255, 0.8); } /* ======================================== PDF Viewer Styles Full-featured PDF reader ======================================== */ .pdf-viewer-container { display: flex; flex-direction: column; width: 100%; height: 100%; background: #525659; } .pdf-viewer-container.hidden { display: none; } .pdf-viewer-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #323639; border-bottom: 1px solid #1a1a1a; flex-shrink: 0; } .pdf-viewer-toolbar button { background: #474a4d; border: 1px solid #5a5d60; border-radius: 4px; color: #fff; padding: 6px 10px; cursor: pointer; font-size: 14px; transition: all 0.15s ease; } .pdf-viewer-toolbar button:hover { background: #5a5d60; } .pdf-viewer-toolbar button:active { background: #0366d6; } .pdf-toolbar-separator { width: 1px; height: 24px; background: #5a5d60; margin: 0 4px; } #pdf-page-info { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 4px; } #pdf-page-input { width: 50px; padding: 4px 6px; border: 1px solid #5a5d60; border-radius: 4px; background: #474a4d; color: #fff; text-align: center; font-size: 13px; } #pdf-zoom-level { color: #fff; font-size: 13px; min-width: 50px; text-align: center; } .pdf-filename { color: #aaa; font-size: 12px; flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; } #pdf-close { background: #c0392b !important; border-color: #e74c3c !important; } #pdf-close:hover { background: #e74c3c !important; } /* PDF Editor Toolbar Buttons */ .pdf-editor-btn { display: flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #3498db, #2980b9) !important; border: 1px solid #2980b9 !important; color: #fff !important; padding: 5px 8px !important; font-size: 11px !important; font-weight: 500; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; } .pdf-editor-btn:hover { background: linear-gradient(135deg, #2980b9, #1a5276) !important; transform: translateY(-1px); } .pdf-editor-btn:active { transform: translateY(0); } .pdf-editor-btn svg { flex-shrink: 0; } .pdf-editor-btn span { white-space: nowrap; } /* PDF toolbar wrapping for smaller screens */ .pdf-toolbar-main { flex-wrap: wrap; min-height: auto; padding: 6px 10px !important; } .pdf-viewer { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 20px; background: #525659; } #pdf-canvas { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); background: white; } /* ======================================== Print Styles for styles-modern.css Ensures proper print output ======================================== */ @media print { /* Reset container for print */ .container { padding: 0; gap: 0; display: block !important; } /* Hide all UI elements */ .tab-bar, .toolbar, .status-bar, .pane-resizer, .preview-header, .find-dialog, .export-dialog, .batch-dialog, .editor-pane, [id^='editor-pane-'], .new-tab-button, .tab-close { display: none !important; } /* Show preview content */ .preview-pane, [id^='preview-pane-'], .preview-content, [id^='preview-'] { display: block !important; width: 100% !important; padding: 20px !important; position: static !important; overflow: visible !important; } /* Reset main content glass */ .main-content-glass { backdrop-filter: none !important; border: none !important; box-shadow: none !important; } /* Reset editor container */ .editor-container { display: block !important; } /* Reset tab content */ .tab-content { display: block !important; } /* Reset pane */ .pane { display: block !important; width: 100% !important; } /* NO STYLES MODE - Black text on white (ink-saving) */ body.printing-no-styles .container, body.printing-no-styles .main-content-glass, body.printing-no-styles .tab-content, body.printing-no-styles .pane, body.printing-no-styles .preview-pane, body.printing-no-styles [id^='preview-pane-'], body.printing-no-styles .preview-content, body.printing-no-styles [id^='preview-'] { background: white !important; color: #000 !important; } body.printing-no-styles .preview-content h1, body.printing-no-styles .preview-content h2, body.printing-no-styles .preview-content h3, body.printing-no-styles .preview-content h4, body.printing-no-styles .preview-content h5, body.printing-no-styles .preview-content h6, body.printing-no-styles .preview-content p, body.printing-no-styles .preview-content li, body.printing-no-styles .preview-content td, body.printing-no-styles .preview-content th { color: #000 !important; } body.printing-no-styles .preview-content code, body.printing-no-styles .preview-content pre { background: #f5f5f5 !important; color: #000 !important; border-color: #ddd !important; } body.printing-no-styles .preview-content a { color: #000 !important; } body.printing-no-styles .preview-content blockquote { background: #f9f9f9 !important; color: #333 !important; border-left-color: #ccc !important; } /* WITH STYLES MODE - Preserve theme colors */ /* The theme colors are inherited from the body class */ } /* ======================================== Modal/Dialog Theming Dialogs inherit app theme colors ======================================== */ /* ======================================== Command Palette (Ctrl+Shift+P) ======================================== */ .command-palette-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); z-index: 1000; display: flex; justify-content: center; padding-top: 80px; } .command-palette-overlay.hidden { display: none; } .command-palette { width: 560px; max-height: 400px; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; } .command-palette-input { width: 100%; padding: 14px 18px; border: none; outline: none; font-size: 15px; border-bottom: 1px solid #e5e7eb; font-family: inherit; } .command-palette-results { overflow-y: auto; max-height: 340px; } .command-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; cursor: pointer; font-size: 14px; } .command-item:hover, .command-item.selected { background: #f3f4f6; } .command-label strong { color: #5661b3; } .command-shortcut { font-size: 12px; color: #9ca3af; background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono-active); } /* Dark theme command palette */ body[class*='dark'] .command-palette { background: #1e1e1e; border: 1px solid #333; } body[class*='dark'] .command-palette-input { background: #1e1e1e; color: #eee; border-color: #333; } body[class*='dark'] .command-item:hover, body[class*='dark'] .command-item.selected { background: #2d2d2d; } body[class*='dark'] .command-shortcut { background: #333; color: #888; } /* ======================================== Breadcrumb Bar ======================================== */ .breadcrumb-bar { padding: 4px 12px; font-size: 12px; color: var(--gray-500, #6b7280); border-bottom: 1px solid var(--gray-200, #e5e7eb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; background: var(--gray-50, #f9fafb); font-family: var(--font-mono-active); } body[class*='dark'] .breadcrumb-bar { background: #1a1a1a; color: #888; border-color: #333; } /* Print Preview Dialog */ .print-preview-dialog { width: 90vw; max-width: 1200px; height: 80vh; display: flex; flex-direction: column; } .print-preview-body { display: flex; flex: 1; overflow: hidden; } .print-preview-sidebar { width: 260px; padding: 16px; border-right: 1px solid var(--gray-200, #e5e7eb); overflow-y: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; } .print-preview-content { flex: 1; padding: 16px; background: #e5e7eb; display: flex; justify-content: center; overflow: auto; } .print-preview-content iframe { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); border-radius: 4px; } .print-option-group { display: flex; flex-direction: column; gap: 6px; } .print-option-group label { font-size: 13px; font-weight: 500; color: var(--gray-600, #4b5563); } .print-option-group select, .print-option-group input[type='text'] { padding: 8px 10px; border: 1px solid var(--gray-300, #d1d5db); border-radius: 8px; font-size: 13px; background: white; } .scale-control { display: flex; align-items: center; gap: 8px; } .scale-control input[type='range'] { flex: 1; } .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; } .print-range-input { margin-top: 6px; } .print-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; } .btn-primary { flex: 1; padding: 10px; background: var(--primary-dark, #5661b3); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; } .btn-primary:hover { opacity: 0.9; } .btn-secondary { flex: 1; padding: 10px; background: var(--gray-100, #f3f4f6); color: var(--gray-700, #374151); border: 1px solid var(--gray-300, #d1d5db); border-radius: 8px; font-size: 14px; cursor: pointer; } /* Writing Analytics Modal */ .analytics-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; animation: analyticsFadeIn 0.2s ease; } .analytics-modal { background: var(--bg-primary, #fff); border-radius: 12px; width: 520px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: analyticsSlideUp 0.3s ease; } .analytics-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color, #e5e7eb); } .analytics-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-primary); } .analytics-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 4px 8px; border-radius: 4px; } .analytics-close:hover { background: var(--bg-tertiary); color: var(--text-primary); } .analytics-body { padding: 16px 24px 24px; } .analytics-section { margin-bottom: 20px; } .analytics-section h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted, #9ca3af); margin: 0 0 10px; } .analytics-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; } .analytics-label { color: var(--text-secondary, #6b7280); } .analytics-value { font-weight: 500; color: var(--text-primary); } .analytics-value small { color: var(--text-muted); font-weight: 400; margin-left: 6px; } .readability-meter { height: 4px; background: var(--bg-tertiary, #f3f4f6); border-radius: 2px; margin-top: 8px; overflow: hidden; } .readability-fill { height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981); border-radius: 2px; transition: width 0.5s ease; } .word-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .word-tag { background: var(--bg-tertiary, #f3f4f6); padding: 4px 10px; border-radius: 12px; font-size: 13px; color: var(--text-secondary); } .word-tag small { opacity: 0.5; font-size: 10px; margin-left: 2px; } .analytics-longest { flex-direction: column; gap: 4px; } .analytics-sentence-preview { font-style: italic; font-size: 13px; color: var(--text-secondary); font-weight: 400; } @keyframes analyticsFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes analyticsSlideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } body[class*='dark'] .analytics-modal { background: var(--gray-800, #1f2937); } body[class*='dark'] .word-tag { background: var(--gray-700, #374151); } /* ======================================== Interactive PDF Thumbnail Sidebar Styles ======================================== */ .pdf-editor-body.side-by-side { display: flex; flex-direction: row; gap: 16px; height: 550px; overflow: hidden; } .pdf-editor-left-panel { flex: 1.2; overflow-y: auto; padding-right: 8px; height: 100%; } .pdf-editor-right-panel { flex: 0.8; display: flex; flex-direction: column; border-left: 1px solid var(--border-color, #e5e7eb); padding-left: 16px; height: 100%; overflow: hidden; } .pdf-editor-right-panel h4 { margin: 0 0 4px 0; font-size: 15px; font-weight: 600; color: var(--text-primary); } .pdf-editor-right-panel .sidebar-help { margin: 0 0 12px 0; font-size: 11px; color: var(--text-secondary, #6b7280); line-height: 1.4; } .pdf-thumbnail-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; overflow-y: auto; padding: 4px; } .pdf-thumbnail-card { display: flex; flex-direction: column; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-primary, #ffffff); box-shadow: var(--shadow-sm); padding: 8px; transition: all var(--transition-speed, 0.3s) var(--transition-ease); position: relative; overflow: hidden; } .pdf-thumbnail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light, #8b9aff); } .pdf-thumbnail-card.marked-delete { border-color: var(--error, #ef4444); background: rgba(239, 68, 68, 0.05); } .pdf-thumbnail-card.marked-delete::after { content: 'DELETE'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); background: rgba(239, 68, 68, 0.95); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; pointer-events: none; box-shadow: var(--shadow-sm); letter-spacing: 0.5px; white-space: nowrap; } .pdf-thumbnail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .pdf-thumbnail-header .badge { font-size: 11px; font-weight: 600; background: var(--bg-tertiary, #f3f4f6); color: var(--text-primary); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono, monospace); } .canvas-container { display: flex; justify-content: center; align-items: center; background: var(--bg-secondary, #f9fafb); border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; padding: 6px; height: 120px; overflow: hidden; } .pdf-thumbnail-canvas { max-width: 100%; max-height: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease; } /* CSS Rotations */ .rot90 { transform: rotate(90deg); } .rot180 { transform: rotate(180deg); } .rot270 { transform: rotate(270deg); } .pdf-thumbnail-controls { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .pdf-thumbnail-controls button, .pdf-thumbnail-controls label { font-size: 11px; } .btn-rotate-thumbnail { background: var(--bg-tertiary, #f3f4f6); border: 1px solid var(--border-color, #e5e7eb); color: var(--text-primary); border-radius: 4px; padding: 3px 6px; cursor: pointer; width: 100%; text-align: center; transition: all 0.2s; font-weight: 500; } .btn-rotate-thumbnail:hover { background: var(--primary-light, #8b9aff); color: #fff; border-color: var(--primary-dark); } .delete-thumbnail-checkbox { display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; user-select: none; font-weight: 500; color: var(--text-secondary); } .delete-thumbnail-checkbox input { margin: 0; cursor: pointer; } .pdf-thumbnail-reorder { display: flex; justify-content: space-between; gap: 4px; } .btn-reorder-left, .btn-reorder-right { flex: 1; background: var(--bg-tertiary, #f3f4f6); border: 1px solid var(--border-color, #e5e7eb); color: var(--text-primary); border-radius: 4px; padding: 2px; cursor: pointer; transition: all 0.2s; } .btn-reorder-left:hover:not(:disabled), .btn-reorder-right:hover:not(:disabled) { background: var(--bg-secondary); border-color: var(--text-muted); } .btn-reorder-left:disabled, .btn-reorder-right:disabled { opacity: 0.3; cursor: not-allowed; } .loading-thumbnails, .thumbnail-error { grid-column: 1 / -1; text-align: center; padding: 40px 20px; font-size: 13px; color: var(--text-muted); } .thumbnail-error { color: var(--error, #ef4444); } /* Dark mode adjustments */ body[class*='dark'] .pdf-thumbnail-card { background: var(--gray-800, #1f2937); border-color: var(--gray-700, #374151); } body[class*='dark'] .pdf-thumbnail-header .badge { background: var(--gray-700, #374151); color: var(--gray-200); } body[class*='dark'] .canvas-container { background: var(--gray-900, #111827); border-color: var(--gray-700); } body[class*='dark'] .btn-rotate-thumbnail, body[class*='dark'] .btn-reorder-left, body[class*='dark'] .btn-reorder-right { background: var(--gray-700, #374151); border-color: var(--gray-600); color: var(--gray-200); } /* Monospace ligature control — driven by body.mono-ligatures-on/off */ .editor-textarea, .preview-content code, .preview-content pre, .codemirror-container .cm-editor, .cm-editor { font-feature-settings: var(--font-mono-feature); }