* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'MS Sans Serif', Tahoma, sans-serif; height: 100vh; overflow: hidden; background: #c0c0c0; display: flex; flex-direction: column; } .header { background: #c0c0c0; border-bottom: 2px solid #808080; 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; color: #000000; } .header-links { display: flex; gap: 16px; } .header-link { font-size: 12px; color: #000000; text-decoration: underline; cursor: pointer; } .header-link:hover { background: #316ac5; color: #ffffff; } .app-container { display: flex; height: calc(100vh - 36px); width: 100vw; } .toggle-strip { display: flex; flex-direction: column; background: #c0c0c0; width: 32px; border-right: 2px solid #808080; } .main-panels { display: flex; flex: 1; min-width: 0; } .panel { display: flex; flex-direction: column; border-right: 2px solid #808080; background: #c0c0c0; min-width: 200px; } .panel:last-child { border-right: none; } .resize-handle { width: 4px; background: #808080; cursor: col-resize; flex-shrink: 0; position: relative; border-left: 1px solid #a0a0a0; border-right: 1px solid #606060; } .resize-handle:hover { background: #606060; } .resize-handle.dragging { background: #316ac5; } .panel-header { padding: 6px 12px; background: #c0c0c0; border-bottom: 1px solid #808080; font-weight: normal; font-size: 12px; color: #000000; display: flex; justify-content: space-between; align-items: center; height: 28px; box-sizing: border-box; } .editor-controls { display: flex; align-items: center; gap: 6px; height: 20px; } .view-label { font-size: 10px; color: #000000; margin-right: 4px; } .view-toggle-group { display: flex; } .view-toggle-btn { background: #c0c0c0; border: 1px solid #808080; color: #000000; padding: 2px 8px; cursor: pointer; font-size: 10px; font-family: 'MS Sans Serif', Tahoma, sans-serif; height: 20px; box-sizing: border-box; } .view-toggle-btn:first-child { border-right: 1px solid #808080; } .view-toggle-btn:last-child { border-left: none; } .view-toggle-btn:hover:not(.active) { background: #d4d0c8; } .view-toggle-btn:active { background: #316ac5; color: #ffffff; } .view-toggle-btn.active { background: #316ac5; color: #ffffff; border-top: 1px solid #0a246a; border-left: 1px solid #0a246a; border-bottom: 1px solid #4a7ac5; border-right: 1px solid #4a7ac5; } .view-toggle-btn.active:first-child { border-right: 1px solid #4a7ac5; } .view-toggle-btn.active:last-child { border-left: 1px solid #0a246a; } .action-btn { border: 2px outset #c0c0c0; color: #000000; padding: 2px 8px; cursor: pointer; font-size: 10px; font-family: 'MS Sans Serif', Tahoma, sans-serif; display: none; height: 20px; 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: #90ee90; } .publish-btn:hover { background: #a0ffa0; } .revert-btn { background: #ffb080; } .revert-btn:hover { background: #ffc090; } /* Sort controls */ .sort-controls { padding: 6px 12px; background: #d4d0c8; border-bottom: 2px solid #808080; display: flex; align-items: center; gap: 6px; font-size: 11px; } .sort-label { color: #000000; font-size: 10px; margin-right: 4px; } .sort-btn { background: #c0c0c0; border: 1px outset #c0c0c0; color: #000000; padding: 2px 6px; cursor: pointer; font-size: 10px; font-family: 'MS Sans Serif', Tahoma, sans-serif; display: flex; align-items: center; gap: 3px; } .sort-text { flex: 1; } .sort-arrow { font-size: 9px; opacity: 0.7; } .sort-btn:hover { background: #d4d0c8; } .sort-btn:active { border: 1px inset #c0c0c0; } .sort-btn.active { background: #316ac5; color: #ffffff; border: 1px inset #316ac5; } /* Search controls */ .search-controls { padding: 6px 12px; background: #d4d0c8; border-bottom: 2px solid #808080; display: flex; align-items: center; gap: 4px; } #snippet-search { flex: 1; font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 11px; border: 2px inset #c0c0c0; padding: 3px 6px; height: 20px; } .search-clear-btn { background: #c0c0c0; border: 1px outset #c0c0c0; color: #000000; width: 20px; height: 20px; cursor: pointer; font-size: 14px; font-family: 'MS Sans Serif', Tahoma, sans-serif; display: flex; align-items: center; justify-content: center; padding: 0; } .search-clear-btn:hover { background: #d4d0c8; } .search-clear-btn:active { border: 1px inset #c0c0c0; } .search-clear-btn:disabled { opacity: 0.5; cursor: default; } .panel-content { flex: 1; padding: 8px; overflow: hidden; background: #ffffff; border: 1px inset #c0c0c0; 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: #c0c0c0; border: 2px outset #c0c0c0; color: #000000; padding: 6px; cursor: pointer; font-size: 16px; height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; } .toggle-btn:hover { background: #d4d0c8; } .toggle-btn:active { border: 2px inset #c0c0c0; } .toggle-btn.active { background: #d4d0c8; border: 2px inset #c0c0c0; } /* Placeholder content styling */ .placeholder { color: #808080; font-style: italic; text-align: center; margin-top: 40px; font-size: 12px; } .snippet-list { list-style: none; flex: 1; overflow-y: auto; overflow-x: hidden; margin-bottom: 8px; } .snippet-item { padding: 4px 8px; border: 1px solid #808080; margin-bottom: 2px; cursor: pointer; background: #ffffff; 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: #00ff00; box-shadow: 0 0 2px #00cc00; } .snippet-status.draft { background: #ffff00; box-shadow: 0 0 2px #cccc00; } .snippet-item:hover { background: #6a9ad5; color: #ffffff; } .snippet-item.selected { background: #316ac5; color: #ffffff; } .snippet-item.selected:hover { background: #316ac5; } .snippet-name { font-weight: normal; font-size: 12px; } .snippet-date { font-size: 11px; color: inherit; margin-top: 1px; } .snippet-size { font-size: 10px; color: #808080; margin-left: auto; margin-right: 8px; flex-shrink: 0; } .editor-placeholder { background: #ffffff; border: 2px inset #c0c0c0; height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 8px; } .preview-placeholder { background: #ffffff; border: 2px inset #c0c0c0; height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 8px; } /* Snippet meta section */ .snippet-meta { margin-top: 12px; padding: 8px 8px 16px 8px; border-top: 1px solid #808080; background: #f0f0f0; border: 1px inset #c0c0c0; margin-left: -8px; margin-right: -8px; margin-bottom: 0; flex-shrink: 0; } .meta-header { font-size: 11px; font-weight: bold; margin-bottom: 4px; color: #000000; } #snippet-comment, #snippet-name { width: 100%; font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 11px; border: 2px inset #c0c0c0; padding: 4px; margin-bottom: 8px; } #snippet-comment { resize: vertical; min-height: 40px; } #snippet-name { height: 20px; } /* Meta info section */ .meta-info { margin: 8px 0; padding: 6px; background: #e0e0e0; border: 1px inset #c0c0c0; 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; color: #000000; } .meta-info-value { color: #606060; } /* Meta action buttons */ .meta-actions { display: flex; gap: 6px; margin-top: 8px; } .meta-btn { background: #c0c0c0; border: 2px outset #c0c0c0; color: #000000; padding: 4px 8px; cursor: pointer; font-size: 11px; font-family: 'MS Sans Serif', Tahoma, sans-serif; flex: 1; } .meta-btn:hover { background: #d4d0c8; } .meta-btn:active { border: 2px inset #c0c0c0; } .delete-btn { background: #ff8080; border: 2px outset #ff8080; } .delete-btn:hover { background: #ff9999; } .delete-btn:active { border: 2px inset #ff8080; } /* Ghost card for new snippet creation */ .ghost-card { border: 2px dashed #808080 !important; background: #f0f0f0 !important; font-style: italic; opacity: 0.8; } .ghost-card:hover { background: #e0e0e0 !important; border-color: #606060 !important; opacity: 1; } .ghost-card .snippet-name { color: #606060; } .ghost-card .snippet-date { color: #808080; } /* Storage monitor */ .storage-monitor { padding: 8px; background: #f0f0f0; border-top: 1px solid #808080; margin: 0 -8px -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; color: #000000; } .storage-text { color: #606060; } .storage-bar { width: 100%; height: 12px; background: #ffffff; border: 1px inset #c0c0c0; position: relative; } .storage-fill { height: 100%; background: #00aa00; transition: width 0.3s ease, background-color 0.3s ease; } .storage-fill.warning { background: #ff8800; } .storage-fill.critical { background: #ff0000; } /* Modal Styles */ .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: #c0c0c0; border: 2px outset #c0c0c0; 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: #000080; color: #ffffff; padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; height: 24px; border-bottom: 2px solid #808080; } .modal-title { font-size: 12px; font-weight: bold; } .modal-close { background: #c0c0c0; border: 2px outset #c0c0c0; color: #000000; width: 20px; height: 20px; cursor: pointer; font-size: 14px; font-family: 'MS Sans Serif', Tahoma, sans-serif; display: flex; align-items: center; justify-content: center; padding: 0; } .modal-close:hover { background: #d4d0c8; } .modal-close:active { border: 2px inset #c0c0c0; } .modal-body { flex: 1; overflow: auto; background: #ffffff; border: 2px inset #c0c0c0; margin: 8px; min-height: 0; } /* Dataset Views */ .dataset-view { min-height: 100%; display: flex; flex-direction: column; } /* List View */ .dataset-list-header { padding: 8px; background: #d4d0c8; border-bottom: 2px solid #808080; } .dataset-container { display: flex; flex: 1; overflow: hidden; } .dataset-list { width: 300px; overflow-y: auto; border-right: 2px solid #808080; background: #ffffff; } .dataset-item { padding: 8px; border-bottom: 1px solid #d0d0d0; cursor: pointer; background: #ffffff; } .dataset-item:hover { background: #6a9ad5; color: #ffffff; } .dataset-item.selected { background: #316ac5; color: #ffffff; } .dataset-name { font-size: 12px; font-weight: bold; margin-bottom: 2px; } .dataset-meta { font-size: 10px; color: #606060; } .dataset-item.selected .dataset-meta, .dataset-item:hover .dataset-meta { color: inherit; opacity: 0.9; } .dataset-empty { padding: 32px; text-align: center; color: #808080; font-style: italic; font-size: 12px; } /* Dataset Details */ .dataset-details { flex: 1; overflow-y: auto; background: #ffffff; } .dataset-detail-section { padding: 16px; } .dataset-detail-header { font-size: 11px; font-weight: bold; margin-bottom: 6px; margin-top: 12px; color: #000000; } .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; } .dataset-refresh-btn { background: #c0c0c0; border: 2px outset #c0c0c0; color: #000000; width: 24px; height: 24px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0; } .dataset-refresh-btn:hover { background: #d4d0c8; } .dataset-refresh-btn:active { border: 2px inset #c0c0c0; } .dataset-refresh-btn:disabled { opacity: 0.5; cursor: default; } .dataset-input, .dataset-textarea { width: 100%; font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 11px; border: 2px inset #c0c0c0; padding: 4px; background: #ffffff; } .dataset-textarea { resize: vertical; } .dataset-stats { background: #f0f0f0; border: 1px inset #c0c0c0; padding: 8px; font-size: 10px; } .dataset-stat-item { display: flex; justify-content: space-between; margin-bottom: 4px; } .dataset-stat-item:last-child { margin-bottom: 0; } .dataset-stat-label { font-weight: bold; color: #000000; } .dataset-preview-box { background: #f0f0f0; border: 2px inset #c0c0c0; padding: 8px; font-family: 'Courier New', monospace; font-size: 10px; overflow: auto; max-height: 200px; margin: 0; } .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; color: #000000; } .dataset-form-group { margin-bottom: 12px; } .dataset-form-label { display: block; font-size: 11px; font-weight: bold; margin-bottom: 4px; color: #000000; } .dataset-toggle-row { display: flex; gap: 24px; padding: 8px; background: #f0f0f0; border: 1px inset #c0c0c0; flex-wrap: wrap; } .dataset-toggle-section { display: flex; align-items: center; gap: 8px; } .dataset-toggle-label { font-size: 10px; color: #000000; } .dataset-toggle-group { display: flex; } .dataset-toggle-btn { background: #c0c0c0; border: 1px solid #808080; color: #000000; padding: 2px 8px; cursor: pointer; font-size: 10px; font-family: 'MS Sans Serif', Tahoma, sans-serif; height: 20px; box-sizing: border-box; } .dataset-toggle-btn:not(:first-child) { border-left: none; } .dataset-toggle-btn:hover:not(.active) { background: #d4d0c8; } .dataset-toggle-btn:active { background: #316ac5; color: #ffffff; } .dataset-toggle-btn.active { background: #316ac5; color: #ffffff; border-top: 1px solid #0a246a; border-left: 1px solid #0a246a; border-bottom: 1px solid #4a7ac5; border-right: 1px solid #4a7ac5; } .dataset-toggle-btn.active:not(:first-child) { border-left: 1px solid #0a246a; } .dataset-format-hint { font-size: 10px; color: #606060; font-style: italic; margin-bottom: 4px; padding: 4px; background: #fffacd; border: 1px solid #e0e0a0; } /* Detection Confirmation UI */ .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; color: #000000; } .detection-badges { display: flex; gap: 6px; align-items: center; } .detection-badge { background: #316ac5; color: #ffffff; padding: 2px 8px; font-size: 10px; font-weight: bold; border: 1px solid #0a246a; border-radius: 2px; } .detected-confidence { font-size: 9px; padding: 2px 6px; border-radius: 2px; font-weight: normal; } .detected-confidence.high { background: #90ee90; color: #000000; border: 1px solid #60c060; } .detected-confidence.medium { background: #ffff90; color: #000000; border: 1px solid #d0d060; } .detected-confidence.low { background: #ffb080; color: #000000; border: 1px solid #d08050; } .detection-preview-label { font-size: 10px; font-weight: bold; margin-bottom: 4px; color: #000000; } .detection-preview-box { background: #ffffff; border: 2px inset #c0c0c0; padding: 8px; font-family: 'Courier New', monospace; font-size: 10px; overflow: auto; max-height: 150px; margin: 0; } .dataset-form-error { color: #ff0000; font-size: 11px; margin-bottom: 12px; min-height: 16px; } .dataset-form-actions { display: flex; gap: 8px; margin-top: 16px; } /* Modal Buttons */ .modal-btn { background: #c0c0c0; border: 2px outset #c0c0c0; color: #000000; padding: 6px 12px; cursor: pointer; font-size: 11px; font-family: 'MS Sans Serif', Tahoma, sans-serif; } .modal-btn:hover { background: #d4d0c8; } .modal-btn:active { border: 2px inset #c0c0c0; } .modal-btn.primary { background: #90ee90; } .modal-btn.primary:hover { background: #a0ffa0; } .modal-btn.delete-btn { background: #ff8080; border: 2px outset #ff8080; } .modal-btn.delete-btn:hover { background: #ff9999; } .modal-btn.delete-btn:active { border: 2px inset #ff8080; }