/* ============================================ CSS Variables - Windows 2000 Theme ============================================ */ :root { /* Windows 2000 Color Palette */ --win-gray: #c0c0c0; --win-gray-light: #d4d0c8; --win-gray-dark: #808080; --win-gray-darker: #606060; --win-blue: #316ac5; --win-blue-dark: #0a246a; --win-blue-light: #4a7ac5; --win-blue-lighter: #6a9ad5; --win-blue-modal: #000080; /* Background Colors */ --bg-white: #ffffff; --bg-light: #f0f0f0; --bg-lighter: #e0e0e0; --bg-hint: #fffacd; --bg-detection: #e8f4f8; /* Text Colors */ --text-black: #000000; --text-gray: #606060; --text-gray-light: #808080; --text-white: #ffffff; /* Status Colors */ --status-green: #00ff00; --status-green-dark: #00cc00; --status-green-bg: #90ee90; --status-green-hover: #a0ffa0; --status-green-ok: #00aa00; --status-green-confidence: #60c060; --status-yellow: #ffff00; --status-yellow-light: #ffff90; --status-yellow-dark: #cccc00; --status-yellow-confidence: #d0d060; --status-orange: #ff8800; --status-orange-light: #ffb080; --status-orange-lighter: #ffc090; --status-orange-confidence: #d08050; --status-red: #ff0000; --status-red-light: #ff8080; --status-red-lighter: #ff9999; /* Border Colors */ --border-light: #d0d0d0; --border-mid: #a0a0a0; --border-hint: #e0e0a0; --border-detection: #4a90c5; /* Font Family */ --font-main: 'MS Sans Serif', Tahoma, sans-serif; --font-mono: 'Courier New', monospace; /* Font Sizes */ --font-xs: 9px; --font-sm: 10px; --font-md: 11px; --font-lg: 12px; --font-xl: 14px; --font-icon: 16px; --font-header: 20px; /* Spacing Scale */ --space-xxs: 1px; --space-xs: 2px; --space-sm: 4px; --space-md: 6px; --space-lg: 8px; --space-xl: 12px; --space-xxl: 16px; --space-xxxl: 24px; --space-huge: 32px; /* Component Heights */ --height-btn-sm: 20px; --height-btn-md: 24px; --height-panel-header: 28px; --height-toggle: 32px; --height-header: 36px; /* Border Widths */ --border-thin: 1px; --border-thick: 2px; --border-resize: 4px; /* Border Radius (minimal for Win2000) */ --radius-sm: 2px; --radius-md: 4px; } /* ============================================ Base Styles ============================================ */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-main); height: 100vh; overflow: hidden; background: var(--win-gray); display: flex; flex-direction: column; } /* ============================================ Header ============================================ */ .header { background: var(--win-gray); border-bottom: var(--border-thick) solid var(--win-gray-dark); padding: var(--space-md) var(--space-xl); display: flex; align-items: center; justify-content: space-between; height: var(--height-header); flex-shrink: 0; } .header-left { display: flex; align-items: center; gap: 10px; } .header-icon { font-size: var(--font-header); } .header-title { font-size: var(--font-xl); font-weight: bold; color: var(--text-black); } .header-links { display: flex; gap: var(--space-xxl); } .header-link { font-size: var(--font-lg); color: var(--text-black); text-decoration: underline; cursor: pointer; } .header-link:hover { background: var(--win-blue); color: var(--text-white); } /* ============================================ App Container & Layout ============================================ */ .app-container { display: flex; height: calc(100vh - var(--height-header)); width: 100vw; } .toggle-strip { display: flex; flex-direction: column; background: var(--win-gray); width: var(--height-toggle); border-right: var(--border-thick) solid var(--win-gray-dark); } .main-panels { display: flex; flex: 1; min-width: 0; } .panel { display: flex; flex-direction: column; border-right: var(--border-thick) solid var(--win-gray-dark); background: var(--win-gray); min-width: 200px; } .panel:last-child { border-right: none; } /* ============================================ Resize Handles ============================================ */ .resize-handle { width: var(--border-resize); background: var(--win-gray-dark); cursor: col-resize; flex-shrink: 0; position: relative; border-left: var(--border-thin) solid var(--border-mid); border-right: var(--border-thin) solid var(--text-gray); } .resize-handle:hover { background: var(--text-gray); } .resize-handle.dragging { background: var(--win-blue); } /* ============================================ Panel Header ============================================ */ .panel-header { padding: var(--space-md) var(--space-xl); background: var(--win-gray); border-bottom: var(--border-thin) solid var(--win-gray-dark); font-weight: normal; font-size: var(--font-lg); color: var(--text-black); display: flex; justify-content: space-between; align-items: center; height: var(--height-panel-header); box-sizing: border-box; } /* ============================================ Editor Controls ============================================ */ .editor-controls { display: flex; align-items: center; gap: var(--space-md); height: var(--height-btn-sm); } .view-label { font-size: var(--font-sm); color: var(--text-black); margin-right: var(--space-sm); } .view-toggle-group { display: flex; } .view-toggle-btn { background: var(--win-gray); border: var(--border-thin) solid var(--win-gray-dark); color: var(--text-black); padding: var(--space-xs) var(--space-lg); cursor: pointer; font-size: var(--font-sm); font-family: var(--font-main); height: var(--height-btn-sm); box-sizing: border-box; } .view-toggle-btn:first-child { border-right: var(--border-thin) solid var(--win-gray-dark); } .view-toggle-btn:last-child { border-left: none; } .view-toggle-btn:hover:not(.active) { background: var(--win-gray-light); } .view-toggle-btn:active { background: var(--win-blue); color: var(--text-white); } .view-toggle-btn.active { background: var(--win-blue); color: var(--text-white); border-top: var(--border-thin) solid var(--win-blue-dark); border-left: var(--border-thin) solid var(--win-blue-dark); border-bottom: var(--border-thin) solid var(--win-blue-light); border-right: var(--border-thin) solid var(--win-blue-light); } .view-toggle-btn.active:first-child { border-right: var(--border-thin) solid var(--win-blue-light); } .view-toggle-btn.active:last-child { border-left: var(--border-thin) solid var(--win-blue-dark); } /* ============================================ Action Buttons ============================================ */ .action-btn { border: var(--border-thick) outset var(--win-gray); color: var(--text-black); padding: var(--space-xs) var(--space-lg); cursor: pointer; font-size: var(--font-sm); font-family: var(--font-main); display: none; height: var(--height-btn-sm); box-sizing: border-box; } .action-btn.visible { display: block; } .action-btn:hover { filter: brightness(1.1); } .action-btn:active { border-style: inset; } .action-btn:disabled { opacity: 0.5; cursor: default; } .publish-btn { background: var(--status-green-bg); } .publish-btn:hover { background: var(--status-green-hover); } .revert-btn { background: var(--status-orange-light); } .revert-btn:hover { background: var(--status-orange-lighter); } /* ============================================ Sort Controls ============================================ */ .sort-controls { padding: var(--space-md) var(--space-xl); background: var(--win-gray-light); border-bottom: var(--border-thick) solid var(--win-gray-dark); display: flex; align-items: center; gap: var(--space-md); font-size: var(--font-md); } .sort-label { color: var(--text-black); font-size: var(--font-sm); margin-right: var(--space-sm); } .sort-btn { background: var(--win-gray); border: var(--border-thin) outset var(--win-gray); color: var(--text-black); padding: var(--space-xs) var(--space-md); cursor: pointer; font-size: var(--font-sm); font-family: var(--font-main); display: flex; align-items: center; gap: 3px; } .sort-text { flex: 1; } .sort-arrow { font-size: var(--font-xs); opacity: 0.7; } .sort-btn:hover { background: var(--win-gray-light); } .sort-btn:active { border: var(--border-thin) inset var(--win-gray); } .sort-btn.active { background: var(--win-blue); color: var(--text-white); border: var(--border-thin) inset var(--win-blue); } /* ============================================ Search Controls ============================================ */ .search-controls { padding: var(--space-md) var(--space-xl); background: var(--win-gray-light); border-bottom: var(--border-thick) solid var(--win-gray-dark); display: flex; align-items: center; gap: var(--space-sm); } #snippet-search { flex: 1; font-family: var(--font-main); font-size: var(--font-md); border: var(--border-thick) inset var(--win-gray); padding: 3px var(--space-md); height: var(--height-btn-sm); } .search-clear-btn { background: var(--win-gray); border: var(--border-thin) outset var(--win-gray); color: var(--text-black); width: var(--height-btn-sm); height: var(--height-btn-sm); cursor: pointer; font-size: var(--font-xl); font-family: var(--font-main); display: flex; align-items: center; justify-content: center; padding: 0; } .search-clear-btn:hover { background: var(--win-gray-light); } .search-clear-btn:active { border: var(--border-thin) inset var(--win-gray); } .search-clear-btn:disabled { opacity: 0.5; cursor: default; } /* ============================================ Panel Content ============================================ */ .panel-content { flex: 1; padding: var(--space-lg); overflow: hidden; background: var(--bg-white); border: var(--border-thin) inset var(--win-gray); display: flex; flex-direction: column; } /* Panel sizing */ .snippet-panel { width: 25%; flex: 0 1 auto; } .editor-panel { width: 50%; flex: 0 1 auto; } .preview-panel { width: 25%; flex: 0 1 auto; } /* ============================================ Toggle Buttons ============================================ */ .toggle-btn { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); color: var(--text-black); padding: var(--space-md); cursor: pointer; font-size: var(--font-icon); height: var(--height-toggle); width: var(--height-toggle); display: flex; align-items: center; justify-content: center; } .toggle-btn:hover { background: var(--win-gray-light); } .toggle-btn:active { border: var(--border-thick) inset var(--win-gray); } .toggle-btn.active { background: var(--win-gray-light); border: var(--border-thick) inset var(--win-gray); } /* ============================================ Placeholder Content ============================================ */ .placeholder { color: var(--text-gray-light); font-style: italic; text-align: center; margin-top: 40px; font-size: var(--font-lg); } /* ============================================ Snippet List ============================================ */ .snippet-list { list-style: none; flex: 1; overflow-y: auto; overflow-x: hidden; margin-bottom: var(--space-lg); } .snippet-item { padding: var(--space-sm) var(--space-lg); border: var(--border-thin) solid var(--win-gray-dark); margin-bottom: var(--space-xs); cursor: pointer; background: var(--bg-white); display: flex; justify-content: space-between; align-items: center; } .snippet-info { flex: 1; } .snippet-status { width: var(--space-lg); height: var(--space-lg); border-radius: 50%; flex-shrink: 0; margin-left: var(--space-lg); } .snippet-status.published { background: var(--status-green); box-shadow: 0 0 var(--space-xs) var(--status-green-dark); } .snippet-status.draft { background: var(--status-yellow); box-shadow: 0 0 var(--space-xs) var(--status-yellow-dark); } .snippet-item:hover { background: var(--win-blue-lighter); color: var(--text-white); } .snippet-item.selected { background: var(--win-blue); color: var(--text-white); } .snippet-item.selected:hover { background: var(--win-blue); } .snippet-name { font-weight: normal; font-size: var(--font-lg); } .snippet-date { font-size: var(--font-md); color: inherit; margin-top: var(--space-xxs); } .snippet-size { font-size: var(--font-sm); color: var(--text-gray-light); margin-left: auto; margin-right: var(--space-lg); flex-shrink: 0; } /* ============================================ Placeholders ============================================ */ .editor-placeholder, .preview-placeholder { background: var(--bg-white); border: var(--border-thick) inset var(--win-gray); height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: var(--space-lg); } /* ============================================ Snippet Meta Section ============================================ */ .snippet-meta { margin-top: var(--space-xl); padding: var(--space-lg) var(--space-lg) var(--space-xxl) var(--space-lg); border-top: var(--border-thin) solid var(--win-gray-dark); background: var(--bg-light); border: var(--border-thin) inset var(--win-gray); margin-left: calc(var(--space-lg) * -1); margin-right: calc(var(--space-lg) * -1); margin-bottom: 0; flex-shrink: 0; } .meta-header { font-size: var(--font-md); font-weight: bold; margin-bottom: var(--space-sm); color: var(--text-black); } #snippet-comment, #snippet-name { width: 100%; font-family: var(--font-main); font-size: var(--font-md); border: var(--border-thick) inset var(--win-gray); padding: var(--space-sm); margin-bottom: var(--space-lg); } #snippet-comment { resize: vertical; min-height: 40px; } #snippet-name { height: var(--height-btn-sm); } /* ============================================ Meta Info Section ============================================ */ .meta-info { margin: var(--space-lg) 0; padding: var(--space-md); background: var(--bg-lighter); border: var(--border-thin) inset var(--win-gray); font-size: var(--font-sm); } .meta-info-item { display: flex; justify-content: space-between; margin-bottom: var(--space-xs); } .meta-info-item:last-child { margin-bottom: 0; } .meta-info-label { font-weight: bold; color: var(--text-black); } .meta-info-value { color: var(--text-gray); } /* ============================================ Meta Action Buttons ============================================ */ .meta-actions { display: flex; gap: var(--space-md); margin-top: var(--space-lg); } .meta-btn { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); color: var(--text-black); padding: var(--space-sm) var(--space-lg); cursor: pointer; font-size: var(--font-md); font-family: var(--font-main); flex: 1; } .meta-btn:hover { background: var(--win-gray-light); } .meta-btn:active { border: var(--border-thick) inset var(--win-gray); } .delete-btn { background: var(--status-red-light); border: var(--border-thick) outset var(--status-red-light); } .delete-btn:hover { background: var(--status-red-lighter); } .delete-btn:active { border: var(--border-thick) inset var(--status-red-light); } /* ============================================ Ghost Card ============================================ */ .ghost-card { border: var(--border-thick) dashed var(--win-gray-dark) !important; background: var(--bg-light) !important; font-style: italic; opacity: 0.8; } .ghost-card:hover { background: var(--bg-lighter) !important; border-color: var(--text-gray) !important; opacity: 1; } .ghost-card .snippet-name { color: var(--text-gray); } .ghost-card .snippet-date { color: var(--text-gray-light); } /* ============================================ Storage Monitor ============================================ */ .storage-monitor { padding: var(--space-lg); background: var(--bg-light); border-top: var(--border-thin) solid var(--win-gray-dark); margin: 0 calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) calc(var(--space-lg) * -1); flex-shrink: 0; } .storage-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); font-size: var(--font-sm); } .storage-label { font-weight: bold; color: var(--text-black); } .storage-text { color: var(--text-gray); } .storage-bar { width: 100%; height: var(--space-xl); background: var(--bg-white); border: var(--border-thin) inset var(--win-gray); position: relative; } .storage-fill { height: 100%; background: var(--status-green-ok); transition: width 0.3s ease, background-color 0.3s ease; } .storage-fill.warning { background: var(--status-orange); } .storage-fill.critical { background: var(--status-red); } /* ============================================ Modal ============================================ */ .modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); width: 90%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--space-sm) var(--space-sm) var(--space-lg) rgba(0, 0, 0, 0.3); } .modal-header { background: var(--win-blue-modal); color: var(--text-white); padding: var(--space-sm) var(--space-lg); display: flex; justify-content: space-between; align-items: center; height: var(--height-btn-md); border-bottom: var(--border-thick) solid var(--win-gray-dark); } .modal-title { font-size: var(--font-lg); font-weight: bold; } .modal-close { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); color: var(--text-black); width: var(--height-btn-sm); height: var(--height-btn-sm); cursor: pointer; font-size: var(--font-xl); font-family: var(--font-main); display: flex; align-items: center; justify-content: center; padding: 0; } .modal-close:hover { background: var(--win-gray-light); } .modal-close:active { border: var(--border-thick) inset var(--win-gray); } .modal-body { flex: 1; overflow: auto; background: var(--bg-white); border: var(--border-thick) inset var(--win-gray); margin: var(--space-lg); min-height: 0; } /* ============================================ Dataset Views ============================================ */ .dataset-view { min-height: 100%; display: flex; flex-direction: column; } .dataset-list-header { padding: var(--space-lg); background: var(--win-gray-light); border-bottom: var(--border-thick) solid var(--win-gray-dark); } .dataset-container { display: flex; flex: 1; overflow: hidden; } .dataset-list { width: 300px; overflow-y: auto; border-right: var(--border-thick) solid var(--win-gray-dark); background: var(--bg-white); } .dataset-item { padding: var(--space-lg); border-bottom: var(--border-thin) solid var(--border-light); cursor: pointer; background: var(--bg-white); } .dataset-item:hover { background: var(--win-blue-lighter); color: var(--text-white); } .dataset-item.selected { background: var(--win-blue); color: var(--text-white); } .dataset-name { font-size: var(--font-lg); font-weight: bold; margin-bottom: var(--space-xs); } .dataset-meta { font-size: var(--font-sm); color: var(--text-gray); } .dataset-item.selected .dataset-meta, .dataset-item:hover .dataset-meta { color: inherit; opacity: 0.9; } .dataset-empty { padding: var(--space-huge); text-align: center; color: var(--text-gray-light); font-style: italic; font-size: var(--font-lg); } /* ============================================ Dataset Details ============================================ */ .dataset-details { flex: 1; overflow-y: auto; background: var(--bg-white); } .dataset-detail-section { padding: var(--space-xxl); } .dataset-detail-header { font-size: var(--font-md); font-weight: bold; margin-bottom: var(--space-md); margin-top: var(--space-xl); color: var(--text-black); } .dataset-detail-header:first-child { margin-top: 0; } .dataset-detail-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); margin-top: var(--space-xl); } .dataset-refresh-btn { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); color: var(--text-black); width: var(--height-btn-md); height: var(--height-btn-md); cursor: pointer; font-size: var(--font-lg); display: flex; align-items: center; justify-content: center; padding: 0; } .dataset-refresh-btn:hover { background: var(--win-gray-light); } .dataset-refresh-btn:active { border: var(--border-thick) inset var(--win-gray); } .dataset-refresh-btn:disabled { opacity: 0.5; cursor: default; } .dataset-input, .dataset-textarea { width: 100%; font-family: var(--font-main); font-size: var(--font-md); border: var(--border-thick) inset var(--win-gray); padding: var(--space-sm); background: var(--bg-white); } .dataset-textarea { resize: vertical; } .dataset-stats { background: var(--bg-light); border: var(--border-thin) inset var(--win-gray); padding: var(--space-lg); font-size: var(--font-sm); } .dataset-stat-item { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); } .dataset-stat-item:last-child { margin-bottom: 0; } .dataset-stat-label { font-weight: bold; color: var(--text-black); } .dataset-preview-box { background: var(--bg-light); border: var(--border-thick) inset var(--win-gray); padding: var(--space-lg); font-family: var(--font-mono); font-size: var(--font-sm); overflow: auto; max-height: 200px; margin: 0; } .dataset-actions { display: flex; gap: var(--space-lg); margin-top: var(--space-xxl); } /* ============================================ Dataset Form ============================================ */ .dataset-form { padding: var(--space-xxl); height: 100%; overflow-y: auto; } .dataset-form-header { font-size: var(--font-xl); font-weight: bold; margin-bottom: var(--space-xxl); color: var(--text-black); } .dataset-form-group { margin-bottom: var(--space-xl); } .dataset-form-label { display: block; font-size: var(--font-md); font-weight: bold; margin-bottom: var(--space-sm); color: var(--text-black); } .dataset-toggle-row { display: flex; gap: var(--space-xxxl); padding: var(--space-lg); background: var(--bg-light); border: var(--border-thin) inset var(--win-gray); flex-wrap: wrap; } .dataset-toggle-section { display: flex; align-items: center; gap: var(--space-lg); } .dataset-toggle-label { font-size: var(--font-sm); color: var(--text-black); } .dataset-toggle-group { display: flex; } .dataset-toggle-btn { background: var(--win-gray); border: var(--border-thin) solid var(--win-gray-dark); color: var(--text-black); padding: var(--space-xs) var(--space-lg); cursor: pointer; font-size: var(--font-sm); font-family: var(--font-main); height: var(--height-btn-sm); box-sizing: border-box; } .dataset-toggle-btn:not(:first-child) { border-left: none; } .dataset-toggle-btn:hover:not(.active) { background: var(--win-gray-light); } .dataset-toggle-btn:active { background: var(--win-blue); color: var(--text-white); } .dataset-toggle-btn.active { background: var(--win-blue); color: var(--text-white); border-top: var(--border-thin) solid var(--win-blue-dark); border-left: var(--border-thin) solid var(--win-blue-dark); border-bottom: var(--border-thin) solid var(--win-blue-light); border-right: var(--border-thin) solid var(--win-blue-light); } .dataset-toggle-btn.active:not(:first-child) { border-left: var(--border-thin) solid var(--win-blue-dark); } .dataset-format-hint { font-size: var(--font-sm); color: var(--text-gray); font-style: italic; margin-bottom: var(--space-sm); padding: var(--space-sm); background: var(--bg-hint); border: var(--border-thin) solid var(--border-hint); } /* ============================================ Detection Confirmation UI ============================================ */ .dataset-detection-confirm { margin: var(--space-xl) 0; padding: var(--space-xl); background: var(--bg-detection); border: var(--border-thick) solid var(--border-detection); border-radius: var(--radius-md); } .detection-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); } .detection-title { font-size: var(--font-md); font-weight: bold; color: var(--text-black); } .detection-badges { display: flex; gap: var(--space-md); align-items: center; } .detection-badge { background: var(--win-blue); color: var(--text-white); padding: var(--space-xs) var(--space-lg); font-size: var(--font-sm); font-weight: bold; border: var(--border-thin) solid var(--win-blue-dark); border-radius: var(--radius-sm); } .detected-confidence { font-size: var(--font-xs); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); font-weight: normal; } .detected-confidence.high { background: var(--status-green-bg); color: var(--text-black); border: var(--border-thin) solid var(--status-green-confidence); } .detected-confidence.medium { background: var(--status-yellow-light); color: var(--text-black); border: var(--border-thin) solid var(--status-yellow-confidence); } .detected-confidence.low { background: var(--status-orange-light); color: var(--text-black); border: var(--border-thin) solid var(--status-orange-confidence); } .detection-preview-label { font-size: var(--font-sm); font-weight: bold; margin-bottom: var(--space-sm); color: var(--text-black); } .detection-preview-box { background: var(--bg-white); border: var(--border-thick) inset var(--win-gray); padding: var(--space-lg); font-family: var(--font-mono); font-size: var(--font-sm); overflow: auto; max-height: 150px; margin: 0; } .dataset-form-error { color: var(--status-red); font-size: var(--font-md); margin-bottom: var(--space-xl); min-height: var(--space-xxl); } .dataset-form-actions { display: flex; gap: var(--space-lg); margin-top: var(--space-xxl); } /* ============================================ Modal Buttons ============================================ */ .modal-btn { background: var(--win-gray); border: var(--border-thick) outset var(--win-gray); color: var(--text-black); padding: var(--space-md) var(--space-xl); cursor: pointer; font-size: var(--font-md); font-family: var(--font-main); } .modal-btn:hover { background: var(--win-gray-light); } .modal-btn:active { border: var(--border-thick) inset var(--win-gray); } .modal-btn.primary { background: var(--status-green-bg); } .modal-btn.primary:hover { background: var(--status-green-hover); } .modal-btn.delete-btn { background: var(--status-red-light); border: var(--border-thick) outset var(--status-red-light); } .modal-btn.delete-btn:hover { background: var(--status-red-lighter); } .modal-btn.delete-btn:active { border: var(--border-thick) inset var(--status-red-light); }