/* CSS Variables - Windows 2000 Theme */ :root { --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; --bg-white: #fff; --bg-light: #f0f0f0; --bg-lighter: #e0e0e0; --font-main: 'MS Sans Serif', Tahoma, sans-serif; --font-mono: 'Courier New', monospace; } /* Base */ * { 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: 2px solid var(--win-gray-dark); padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; height: 36px; flex-shrink: 0; } .header-left { display: flex; align-items: center; gap: 10px; } .header-icon { font-size: 20px; } .header-title { font-size: 14px; font-weight: bold; } .header-links { display: flex; gap: 16px; } .header-link { font-size: 12px; text-decoration: underline; cursor: pointer; } .header-link:hover { background: var(--win-blue); color: var(--bg-white); } /* Layout */ .app-container { display: flex; height: calc(100vh - 36px); width: 100vw; } .toggle-strip { display: flex; flex-direction: column; background: var(--win-gray); width: 32px; border-right: 2px solid var(--win-gray-dark); } .main-panels { display: flex; flex: 1; min-width: 0; } .panel { display: flex; flex-direction: column; border-right: 2px solid var(--win-gray-dark); background: var(--win-gray); min-width: 200px; } .panel:last-child { border-right: none; } .snippet-panel { width: 25%; flex: 0 1 auto; } .editor-panel { width: 50%; flex: 0 1 auto; } .preview-panel { width: 25%; flex: 0 1 auto; } /* Resize Handle */ .resize-handle { width: 4px; background: var(--win-gray-dark); cursor: col-resize; flex-shrink: 0; position: relative; border-left: 1px solid #a0a0a0; border-right: 1px solid var(--win-gray-darker); } .resize-handle:hover { background: var(--win-gray-darker); } .resize-handle.dragging { background: var(--win-blue); } /* Panel Header */ .panel-header { padding: 6px 12px; background: var(--win-gray); border-bottom: 1px solid var(--win-gray-dark); font-size: 12px; display: flex; justify-content: space-between; align-items: center; height: 28px; } /* Controls */ .editor-controls { display: flex; align-items: center; gap: 6px; height: 20px; } .view-label { font-size: 10px; margin-right: 4px; } .view-toggle-group, .dataset-toggle-group { display: flex; } /* Base Button Styles */ .btn { background: var(--win-gray); border: 2px outset var(--win-gray); color: #000; cursor: pointer; font-family: var(--font-main); } .btn:hover { background: var(--win-gray-light); } .btn:active { border-style: inset; } .btn:disabled { opacity: 0.5; cursor: default; } /* Toggle Buttons (small inline) */ .btn-toggle { border: 1px solid var(--win-gray-dark); padding: 2px 8px; font-size: 10px; height: 20px; } .btn-toggle:first-child { border-right: 1px solid var(--win-gray-dark); } .btn-toggle:last-child { border-left: none; } .btn-toggle:hover:not(.active) { background: var(--win-gray-light); } .btn-toggle:active { background: var(--win-blue); color: var(--bg-white); } .btn-toggle.active { background: var(--win-blue); color: var(--bg-white); border-top: 1px solid var(--win-blue-dark); border-left: 1px solid var(--win-blue-dark); border-bottom: 1px solid var(--win-blue-light); border-right: 1px solid var(--win-blue-light); } .btn-toggle.active:first-child { border-right: 1px solid var(--win-blue-light); } .btn-toggle.active:last-child { border-left: 1px solid var(--win-blue-dark); } .btn-toggle:not(:first-child) { border-left: none; } .btn-toggle.active:not(:first-child) { border-left: 1px solid var(--win-blue-dark); } /* Action Buttons */ .btn-action { padding: 2px 8px; font-size: 10px; display: none; height: 20px; } .btn-action.visible { display: block; } .btn-action:hover { filter: brightness(1.1); } .btn-action.publish { background: #90ee90; } .btn-action.publish:hover { background: #a0ffa0; } .btn-action.revert { background: #ffb080; } .btn-action.revert:hover { background: #ffc090; } /* Icon Buttons */ .btn-icon { padding: 0; width: 20px; height: 20px; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 1px outset var(--win-gray); } .btn-icon:active { border: 1px inset var(--win-gray); } .btn-icon.large { width: 24px; height: 24px; font-size: 12px; } .btn-icon.xlarge { width: 32px; height: 32px; font-size: 16px; padding: 6px; } .btn-icon.xlarge.active { background: var(--win-gray-light); border: 2px inset var(--win-gray); } /* Standard Buttons */ .btn-standard { padding: 4px 8px; font-size: 11px; } .btn-standard.flex { flex: 1; } .btn-standard.primary { background: #90ee90; } .btn-standard.primary:hover { background: #a0ffa0; } .btn-standard.danger { background: #f88; border: 2px outset #f88; } .btn-standard.danger:hover { background: #f99; } .btn-standard.danger:active { border: 2px inset #f88; } /* Modal Buttons */ .btn-modal { padding: 6px 12px; font-size: 11px; } .btn-modal.primary { background: #90ee90; } .btn-modal.primary:hover { background: #a0ffa0; } .btn-modal.danger { background: #f88; border: 2px outset #f88; } .btn-modal.danger:hover { background: #f99; } .btn-modal.danger:active { border: 2px inset #f88; } /* Sort Controls */ .sort-controls { padding: 6px 12px; background: var(--win-gray-light); border-bottom: 2px solid var(--win-gray-dark); display: flex; align-items: center; gap: 6px; font-size: 11px; } .sort-label { font-size: 10px; margin-right: 4px; } .sort-btn { border: 1px outset var(--win-gray); padding: 2px 6px; font-size: 10px; display: flex; align-items: center; gap: 3px; } .sort-btn:hover { background: var(--win-gray-light); } .sort-btn:active { border: 1px inset var(--win-gray); } .sort-text { flex: 1; } .sort-arrow { font-size: 9px; opacity: 0.7; } .sort-btn.active { background: var(--win-blue); color: var(--bg-white); border: 1px inset var(--win-blue); border-top: 1px solid var(--win-blue-dark); border-left: 1px solid var(--win-blue-dark); border-bottom: 1px solid var(--win-blue-light); border-right: 1px solid var(--win-blue-light); } /* Search Controls */ .search-controls { padding: 6px 12px; background: var(--win-gray-light); border-bottom: 2px solid var(--win-gray-dark); display: flex; align-items: center; gap: 4px; } #snippet-search { flex: 1; font-family: var(--font-main); font-size: 11px; border: 2px inset var(--win-gray); padding: 3px 6px; height: 20px; } /* Panel Content */ .panel-content { flex: 1; padding: 8px; overflow: hidden; background: var(--bg-white); border: 1px inset var(--win-gray); display: flex; flex-direction: column; } /* Placeholder */ .placeholder { color: var(--win-gray-dark); font-style: italic; text-align: center; margin-top: 40px; font-size: 12px; } /* Snippet List */ .snippet-list { list-style: none; flex: 1; overflow-y: auto; overflow-x: hidden; margin-bottom: 8px; } .snippet-item { padding: 4px 8px; border: 1px solid var(--win-gray-dark); margin-bottom: 2px; cursor: pointer; background: var(--bg-white); display: flex; justify-content: space-between; align-items: center; } .snippet-info { flex: 1; } .snippet-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-left: 8px; } .snippet-status.published { background: #0f0; box-shadow: 0 0 2px #0c0; } .snippet-status.draft { background: #ff0; box-shadow: 0 0 2px #cc0; } .snippet-item:hover { background: var(--win-blue-lighter); color: var(--bg-white); } .snippet-item.selected { background: var(--win-blue); color: var(--bg-white); } .snippet-name { font-size: 12px; } .snippet-date { font-size: 11px; color: inherit; margin-top: 1px; } .snippet-size { font-size: 10px; color: var(--win-gray-dark); margin-left: auto; margin-right: 8px; flex-shrink: 0; } /* Placeholders */ .editor-placeholder, .preview-placeholder { background: var(--bg-white); border: 2px inset var(--win-gray); height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 8px; } /* Snippet Meta */ .snippet-meta { margin-top: 12px; padding: 8px 8px 16px; border-top: 1px solid var(--win-gray-dark); background: var(--bg-light); border: 1px inset var(--win-gray); margin-left: -8px; margin-right: -8px; margin-bottom: 0; flex-shrink: 0; } .meta-header { font-size: 11px; font-weight: bold; margin-bottom: 4px; } /* Base Input Styles */ .input { width: 100%; font-family: var(--font-main); font-size: 11px; border: 2px inset var(--win-gray); padding: 4px; background: var(--bg-white); } .input.textarea { resize: vertical; } .input.small { height: 20px; } .input.medium { min-height: 40px; } /* Meta Info */ .meta-info { margin: 8px 0; padding: 6px; background: var(--bg-lighter); border: 1px inset var(--win-gray); font-size: 10px; } .meta-info-item { display: flex; justify-content: space-between; margin-bottom: 2px; } .meta-info-item:last-child { margin-bottom: 0; } .meta-info-label { font-weight: bold; } .meta-info-value { color: var(--win-gray-darker); } /* Meta Actions */ .meta-actions { display: flex; gap: 6px; margin-top: 8px; } /* Ghost Card */ .ghost-card { border: 2px 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(--win-gray-darker) !important; opacity: 1; } .ghost-card .snippet-name { color: var(--win-gray-darker); } .ghost-card .snippet-date { color: var(--win-gray-dark); } /* Storage Monitor */ .storage-monitor { padding: 8px; background: var(--bg-light); border-top: 1px solid var(--win-gray-dark); margin: 0 -8px -8px; flex-shrink: 0; } .storage-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 10px; } .storage-label { font-weight: bold; } .storage-text { color: var(--win-gray-darker); } .storage-bar { width: 100%; height: 12px; background: var(--bg-white); border: 1px inset var(--win-gray); position: relative; } .storage-fill { height: 100%; background: #0a0; transition: width 0.3s ease, background-color 0.3s ease; } .storage-fill.warning { background: #f80; } .storage-fill.critical { background: #f00; } /* 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: 2px outset var(--win-gray); width: 90%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 4px 4px 8px rgba(0,0,0,0.3); } .modal-header { background: #008; color: var(--bg-white); padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; height: 24px; border-bottom: 2px solid var(--win-gray-dark); } .modal-title { font-size: 12px; font-weight: bold; } .modal-body { flex: 1; overflow: auto; background: var(--bg-white); border: 2px inset var(--win-gray); margin: 8px; min-height: 0; } /* Dataset Views */ .dataset-view { min-height: 100%; display: flex; flex-direction: column; } .dataset-list-header { padding: 8px; background: var(--win-gray-light); border-bottom: 2px solid var(--win-gray-dark); } .dataset-container { display: flex; flex: 1; overflow: hidden; } .dataset-list { width: 300px; overflow-y: auto; border-right: 2px solid var(--win-gray-dark); background: var(--bg-white); } .dataset-item { padding: 8px; border-bottom: 1px solid #d0d0d0; cursor: pointer; background: var(--bg-white); } .dataset-item:hover { background: var(--win-blue-lighter); color: var(--bg-white); } .dataset-item.selected { background: var(--win-blue); color: var(--bg-white); } .dataset-name { font-size: 12px; font-weight: bold; margin-bottom: 2px; } .dataset-meta { font-size: 10px; color: var(--win-gray-darker); } .dataset-item.selected .dataset-meta, .dataset-item:hover .dataset-meta { color: inherit; opacity: 0.9; } .dataset-empty { padding: 32px; text-align: center; color: var(--win-gray-dark); font-style: italic; font-size: 12px; } /* Dataset Details */ .dataset-details { flex: 1; overflow-y: auto; background: var(--bg-white); } .dataset-detail-section { padding: 16px; } .dataset-detail-header { font-size: 11px; font-weight: bold; margin-bottom: 6px; margin-top: 12px; } .dataset-detail-header:first-child { margin-top: 0; } .dataset-detail-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; margin-top: 12px; } /* Stats & Preview Boxes */ .stats-box { background: var(--bg-light); border: 1px inset var(--win-gray); padding: 8px; font-size: 10px; } .stat-item { display: flex; justify-content: space-between; margin-bottom: 4px; } .stat-item:last-child { margin-bottom: 0; } .stat-label { font-weight: bold; } .preview-box { background: var(--bg-light); border: 2px inset var(--win-gray); padding: 8px; font-family: var(--font-mono); font-size: 10px; overflow: auto; margin: 0; } .preview-box.medium { max-height: 150px; } .preview-box.large { max-height: 200px; } .dataset-actions { display: flex; gap: 8px; margin-top: 16px; } /* Dataset Form */ .dataset-form { padding: 16px; height: 100%; overflow-y: auto; } .dataset-form-header { font-size: 14px; font-weight: bold; margin-bottom: 16px; } .dataset-form-group { margin-bottom: 12px; } .dataset-form-label { display: block; font-size: 11px; font-weight: bold; margin-bottom: 4px; } .dataset-toggle-row { display: flex; gap: 24px; padding: 8px; background: var(--bg-light); border: 1px inset var(--win-gray); flex-wrap: wrap; } .dataset-toggle-section { display: flex; align-items: center; gap: 8px; } .dataset-toggle-label { font-size: 10px; } .dataset-format-hint { font-size: 10px; color: var(--win-gray-darker); font-style: italic; margin-bottom: 4px; padding: 4px; background: #fffacd; border: 1px solid #e0e0a0; } /* Detection Confirmation */ .dataset-detection-confirm { margin: 12px 0; padding: 12px; background: #e8f4f8; border: 2px solid #4a90c5; border-radius: 4px; } .detection-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .detection-title { font-size: 11px; font-weight: bold; } .detection-badges { display: flex; gap: 6px; align-items: center; } .detection-badge { background: var(--win-blue); color: var(--bg-white); padding: 2px 8px; font-size: 10px; font-weight: bold; border: 1px solid var(--win-blue-dark); border-radius: 2px; } .detected-confidence { font-size: 9px; padding: 2px 6px; border-radius: 2px; } .detected-confidence.high { background: #90ee90; border: 1px solid #60c060; } .detected-confidence.medium { background: #ffff90; border: 1px solid #d0d060; } .detected-confidence.low { background: #ffb080; border: 1px solid #d08050; } .detection-preview-label { font-size: 10px; font-weight: bold; margin-bottom: 4px; } .dataset-form-error { color: #f00; font-size: 11px; margin-bottom: 12px; min-height: 16px; } .dataset-form-actions { display: flex; gap: 8px; margin-top: 16px; }