/* === CSS varijable — teme === */ :root, [data-theme="dark"] { --bg-page: #1a1a2e; --bg-panel: #16213e; --bg-deep: #111; --bg-hover: #0f3460; --border: #0f3460; --border-light: #333; --border-disabled: #444; --accent: #e94560; --success: #4ecca3; --info: #6ec6ff; --warning: #ffd93d; --text: #eee; --text-light: #ddd; --text-secondary: #aaa; --text-muted: #888; --text-dim: #666; --text-disabled: #555; --text-on-color: #1a1a2e; --overlay: rgba(0,0,0,0.6); --shadow: rgba(0,0,0,0.4); --drag-over: rgba(15, 52, 96, 0.3); --accent-shadow: rgba(233, 69, 96, 0.3); } [data-theme="light"] { --bg-page: #f0f2f5; --bg-panel: #ffffff; --bg-deep: #f5f6fa; --bg-hover: #e0e5ed; --border: #c9d1db; --border-light: #d8dee6; --border-disabled: #ccc; --accent: #d63851; --success: #1a8a6a; --info: #2b7dbd; --warning: #b8860b; --text: #1e293b; --text-light: #334155; --text-secondary: #475569; --text-muted: #64748b; --text-dim: #94a3b8; --text-disabled: #a0aec0; --text-on-color: #ffffff; --overlay: rgba(0,0,0,0.35); --shadow: rgba(0,0,0,0.12); --drag-over: rgba(59, 130, 246, 0.1); --accent-shadow: rgba(214, 56, 81, 0.15); } /* === Reset === */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-page); color: var(--text); } /* === Header === */ .header { padding: 16px 24px; background: var(--bg-panel); display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); } .header h1 { font-size: 1.4em; } .header .version { color: var(--text-muted); font-size: 0.9em; } .header-right { display: flex; gap: 12px; align-items: center; } /* === Theme toggle === */ .theme-toggle { display: flex; gap: 2px; background: var(--bg-page); border-radius: 6px; padding: 2px; border: 1px solid var(--border-light); } .theme-btn { padding: 4px 8px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 4px; font-size: 0.8em; transition: background 0.2s, color 0.2s; line-height: 1; } .theme-btn:hover { color: var(--text); } .theme-btn.active { background: var(--bg-hover); color: var(--text); } /* === Board (Kanban) === */ .board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px; min-height: calc(100vh - 60px); } .column { background: var(--bg-panel); border-radius: 8px; padding: 12px; min-height: 200px; } .column-header { font-weight: bold; padding: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--border); display: flex; justify-content: space-between; } .column-count { background: var(--bg-hover); border-radius: 12px; padding: 2px 8px; font-size: 0.85em; } /* === Task cards === */ .task-card { background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 6px; padding: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, transform 0.1s; } .task-card:hover { border-color: var(--accent); transform: translateY(-1px); } .task-id { font-weight: bold; color: var(--accent); } .task-title { margin-top: 4px; font-size: 0.9em; } .task-meta { margin-top: 6px; font-size: 0.75em; color: var(--text-muted); } .task-deps { font-size: 0.75em; color: var(--text-dim); margin-top: 4px; } /* === Task detail modal === */ #task-detail { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 50; background: var(--overlay); justify-content: center; align-items: center; } #task-detail.active { display: flex; } .detail-inner { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px; width: 700px; max-width: 90%; max-height: 85vh; overflow-y: auto; position: relative; } .detail-close { cursor: pointer; position: absolute; top: 12px; right: 16px; font-size: 1.4em; color: var(--text-muted); padding: 4px 8px; line-height: 1; } .detail-close:hover { color: var(--accent); } .detail-meta { margin-top: 12px; font-size: 0.9em; color: var(--text-secondary); } .detail-meta p { margin-bottom: 4px; } .detail-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; } .detail-content { margin-top: 16px; padding: 12px; background: var(--bg-deep); border-radius: 6px; max-height: 60vh; overflow-y: auto; } /* === Buttons === */ .btn { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border-light); background: var(--bg-page); color: var(--text); cursor: pointer; font-size: 0.85em; text-decoration: none; transition: background 0.2s; } .btn:hover { background: var(--bg-hover); } .btn-move { border-color: var(--accent); } .task-action { margin-top: 6px; text-align: right; } .task-action .btn { font-size: 0.75em; padding: 4px 10px; } .btn-run { border-color: var(--success); color: var(--success); } .btn-run:hover { background: var(--success); color: var(--text-on-color); } .btn-review { border-color: var(--info); color: var(--info); } .btn-review:hover { background: var(--info); color: var(--text-on-color); } .btn-approve { border-color: var(--warning); color: var(--warning); } .btn-approve:hover { background: var(--warning); color: var(--text-on-color); } .btn-report { border-color: var(--text-muted); color: var(--text-muted); } .btn-report:hover { background: var(--text-muted); color: var(--text-on-color); } .btn-blocked { border-color: var(--border-disabled); color: var(--text-disabled); cursor: default; } .btn-running { border-color: var(--accent); color: var(--accent); cursor: default; animation: pulse 1.5s ease infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .btn-success { border-color: var(--success); color: var(--success); } .btn-success:hover { background: var(--success); color: var(--text-on-color); } .btn-active { background: var(--bg-hover); border-color: var(--accent); } /* === Sortable / Drag & Drop === */ .column-tasks { min-height: 50px; } .task-ghost { opacity: 0.4; border: 2px dashed var(--accent); background: var(--bg-hover); } .task-chosen { box-shadow: 0 4px 16px var(--accent-shadow); } .task-drag { opacity: 0.9; transform: rotate(2deg); } .column-tasks.sortable-drag-over { background: var(--drag-over); border-radius: 6px; } /* === Flash animations === */ @keyframes flash-success { 0% { background: var(--success); } 100% { background: var(--bg-page); } } @keyframes flash-error { 0% { background: var(--accent); } 100% { background: var(--bg-page); } } .flash-success { animation: flash-success 0.5s ease; } .flash-error { animation: flash-error 0.5s ease; } /* === Toast === */ .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); padding: 12px 24px; border-radius: 8px; font-size: 0.9em; z-index: 100; transition: transform 0.3s ease; pointer-events: none; } .toast-show { transform: translateX(-50%) translateY(0); } .toast-success { background: var(--success); color: var(--text-on-color); } .toast-error { background: var(--accent); color: #fff; } /* === Search === */ .search-wrapper { position: relative; } .search-wrapper input { background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 6px; color: var(--text); padding: 6px 12px; font-size: 0.85em; width: 220px; outline: none; transition: border-color 0.2s, width 0.3s; } .search-wrapper input:focus { border-color: var(--accent); width: 300px; } .search-results-dropdown { position: absolute; top: 100%; right: 0; width: 400px; max-height: 500px; overflow-y: auto; background: var(--bg-panel); border-radius: 8px; box-shadow: 0 8px 24px var(--shadow); z-index: 50; margin-top: 4px; } .search-results-dropdown:empty { display: none; } .search-result { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); transition: background 0.15s; } .search-result:last-child { border-bottom: none; } .search-result:hover { background: var(--bg-hover); } .search-result-header { display: flex; align-items: center; gap: 6px; } .search-icon { font-size: 0.9em; } .search-title { font-weight: bold; font-size: 0.85em; } .search-status { font-size: 0.7em; padding: 2px 6px; border-radius: 4px; background: var(--bg-hover); margin-left: auto; } .search-status-done { color: var(--success); } .search-status-active { color: var(--accent); } .search-status-review { color: var(--warning); } .search-status-ready { color: var(--info); } .search-status-backlog { color: var(--text-muted); } .search-snippet { font-size: 0.75em; color: var(--text-muted); margin-top: 4px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.85em; } /* === Navigation === */ .nav { display: flex; gap: 8px; align-items: center; } /* === Docs === */ .docs-container { padding: 16px 24px; height: calc(100vh - 60px); display: flex; flex-direction: column; } .docs-layout { display: grid; grid-template-columns: 25% 1fr; gap: 16px; flex: 1; min-height: 0; } .docs-sidebar h2 { margin-bottom: 12px; color: var(--accent); font-size: 1.1em; } .docs-list { display: flex; flex-direction: column; gap: 4px; } .doc-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-panel); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 0.9em; font-family: "JetBrains Mono", "Fira Code", monospace; transition: background 0.2s; } .doc-item:hover { background: var(--bg-hover); } .doc-icon { font-size: 1em; } .docs-breadcrumbs { margin-bottom: 16px; font-size: 0.85em; } .docs-breadcrumbs a { color: var(--accent); text-decoration: none; } .docs-breadcrumbs a:hover { text-decoration: underline; } .breadcrumb-sep { color: var(--text-dim); margin: 0 4px; } .docs-sidebar { overflow-y: auto; } .docs-main { min-width: 0; overflow-y: auto; } .docs-content { background: var(--bg-panel); border-radius: 8px; padding: 24px; line-height: 1.7; font-size: 0.95em; } .docs-content h1, .docs-content h2, .docs-content h3 { color: var(--accent); margin-top: 1.2em; margin-bottom: 0.5em; } .docs-content h1 { font-size: 1.5em; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; } .docs-content h2 { font-size: 1.2em; } .docs-content h3 { font-size: 1.05em; } .docs-content a { color: var(--success); text-decoration: none; } .docs-content a:hover { text-decoration: underline; } .docs-content code { background: var(--bg-page); padding: 2px 6px; border-radius: 3px; font-family: "JetBrains Mono", "Fira Code", monospace; font-size: 0.9em; } .docs-content pre { background: var(--bg-page); padding: 12px; border-radius: 6px; overflow-x: auto; margin: 12px 0; } .docs-content pre code { background: none; padding: 0; } .docs-content table { width: 100%; border-collapse: collapse; margin: 12px 0; } .docs-content th, .docs-content td { border: 1px solid var(--border-light); padding: 8px 12px; text-align: left; } .docs-content th { background: var(--bg-hover); } .docs-content ul, .docs-content ol { padding-left: 24px; margin: 8px 0; } .docs-content li { margin: 4px 0; } .docs-content blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text-secondary); margin: 12px 0; } .docs-content hr { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; } /* === Console === */ .console-container { padding: 16px; height: calc(100vh - 60px); display: flex; flex-direction: column; min-height: 80vh; } .console-panels { display: flex; gap: 8px; flex: 1; min-height: 0; } .console-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg-panel); border-radius: 8px; overflow: hidden; } .console-panel-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.9em; } .session-status { font-size: 0.75em; padding: 2px 8px; border-radius: 4px; background: var(--bg-hover); } .session-idle { color: var(--text-muted); } .session-running { color: var(--success); } .btn-kill { margin-left: auto; border-color: var(--accent); color: var(--accent); padding: 4px 10px; font-size: 0.75em; } .console-terminal { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--bg-deep); } .console-terminal .xterm { height: 100%; padding: 4px; } .console-terminal .xterm-screen { height: 100%; } .console-terminal .xterm-viewport { overflow-y: auto; } .console-input-row { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--border); flex-shrink: 0; } .console-input { flex: 1; background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 6px; color: var(--text); padding: 8px 12px; font-family: "JetBrains Mono", "Fira Code", monospace; font-size: 0.85em; outline: none; } .console-input:focus { border-color: var(--accent); } .console-input:disabled { opacity: 0.5; } .console-toolbar { padding: 8px 0; display: flex; gap: 8px; flex-shrink: 0; } /* === Submit / Prijava === */ .submit-container { max-width: 700px; margin: 0 auto; padding: 24px; height: calc(100vh - 60px); display: flex; flex-direction: column; } .submit-mode-toggle { display: flex; gap: 8px; margin-bottom: 20px; } .btn-mode { border-color: var(--border-light); color: var(--text-muted); } .btn-mode.active { border-color: var(--accent); color: var(--text); background: var(--bg-hover); } .submit-mode h2 { margin-bottom: 16px; color: var(--accent); } .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-size: 0.9em; color: var(--text-secondary); } .form-input { width: 100%; background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 6px; color: var(--text); padding: 10px 14px; font-size: 0.9em; outline: none; font-family: inherit; transition: border-color 0.2s; } .form-input:focus { border-color: var(--accent); } textarea.form-input { resize: vertical; min-height: 100px; } .priority-group { display: flex; gap: 16px; } .priority-label { display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--text); } .submit-msg { display: inline-block; padding: 8px 16px; border-radius: 6px; margin-top: 12px; font-size: 0.9em; } .submit-success { background: var(--success); color: var(--text-on-color); } .submit-error { background: var(--accent); color: #fff; } /* === Chat (operator mode) === */ #mode-operator { flex-direction: column; flex: 1; min-height: 0; } .chat-messages { flex: 1; overflow-y: auto; padding: 12px; background: var(--bg-deep); border-radius: 6px; margin-bottom: 12px; min-height: 300px; } .chat-msg { margin-bottom: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; } .chat-role { font-size: 1.1em; margin-right: 6px; } .chat-user { color: var(--info); } .chat-bot { color: var(--text); } .chat-text { font-family: inherit; } .chat-input-row { display: flex; gap: 4px; flex-shrink: 0; } /* === Placeholder text === */ .text-muted { color: var(--text-muted); } /* === Responsive === */ @media (max-width: 1100px) { .board { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 700px) { .board { grid-template-columns: repeat(2, 1fr); } .docs-layout { grid-template-columns: 1fr; } } @media (max-width: 500px) { .board { grid-template-columns: 1fr; } }