* { 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: auto; background: #ffffff; border: 1px inset #c0c0c0; } /* 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; } .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; } .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; border-top: 1px solid #808080; background: #f0f0f0; border: 1px inset #c0c0c0; margin-left: -8px; margin-right: -8px; margin-bottom: -8px; } .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; }