/* ═══════════════════════════════════════════════ Kanbante — Dark theme design system ═══════════════════════════════════════════════ */ :root { --bg: #0f1117; --surface: #1a1d27; --surface2: #242836; --border: #2e3347; --text: #e2e4e9; --text2: #9498a4; --accent: #7c5cfc; --accent2: #5b8af7; --green: #10b981; --yellow: #f59e0b; --red: #ef4444; --radius: 10px; --shadow: 0 2px 12px rgba(0,0,0,0.3); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--accent2); text-decoration: none; } a:hover { text-decoration: underline; } /* Header */ header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; } header h1 { font-size: 1.25rem; font-weight: 600; } header h1 .sep { color: var(--text2); margin: 0 8px; } .gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } nav { display: flex; gap: 10px; align-items: center; } .badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); } .badge.secondary { background: var(--surface2); color: var(--text2); } .btn-sm { padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; background: var(--surface2); border: 1px solid var(--border); color: var(--text); transition: all 0.15s; } .btn-sm:hover { background: var(--border); text-decoration: none; } /* Tabs */ .tabs { display: flex; gap: 4px; padding: 16px 24px 0; background: var(--surface); } .tabs button { padding: 10px 20px; border: none; background: transparent; color: var(--text2); cursor: pointer; font-size: 0.9rem; border-bottom: 2px solid transparent; transition: all 0.15s; } .tabs button.active { color: var(--accent); border-bottom-color: var(--accent); } .tabs button:hover { color: var(--text); } /* Search */ .search-bar { padding: 12px 24px; background: var(--surface); } .search-bar input { width: 100%; max-width: 400px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; outline: none; transition: border-color 0.15s; } .search-bar input:focus { border-color: var(--accent); } /* Project Grid */ .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding: 24px; } .project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.15s, box-shadow 0.15s; cursor: default; } .project-card:hover { border-color: var(--accent); box-shadow: var(--shadow); } .project-card.archived { opacity: 0.5; } .project-card.archived:hover { opacity: 0.8; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .org-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); font-weight: 600; } .date { font-size: 0.75rem; color: var(--text2); } .project-card h3 { font-size: 1.05rem; margin-bottom: 6px; } .project-card h3 a { color: var(--text); } .project-card h3 a:hover { color: var(--accent2); } .desc { font-size: 0.85rem; color: var(--text2); line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text2); } .mini-progress { display: flex; gap: 4px; } .chip { padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; } /* ── Kanban Board ────────────────────────────── */ .board-container { display: flex; flex: 1; overflow: hidden; } .kanban-board { display: flex; gap: 0; flex: 1; overflow-x: auto; padding: 20px; } .kanban-column { min-width: 280px; max-width: 340px; flex: 1; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); margin-right: 12px; border: 1px solid var(--border); } .column-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0; } .column-title { font-weight: 600; font-size: 0.9rem; } .column-count { background: var(--surface2); padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; color: var(--text2); } .column-cards { flex: 1; padding: 8px; min-height: 120px; overflow-y: auto; } /* Cards */ .kanban-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: grab; transition: box-shadow 0.15s, transform 0.15s; } .kanban-card:hover { box-shadow: var(--shadow); } .kanban-card:active { cursor: grabbing; } .kanban-card.dragging { opacity: 0.5; transform: rotate(2deg); } .card-id { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; } .card-title { font-size: 0.85rem; line-height: 1.4; margin-bottom: 6px; } .card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; } .label-tag { padding: 1px 8px; border-radius: 10px; font-size: 0.65rem; font-weight: 600; } .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--text2); } .avatar { width: 20px; height: 20px; border-radius: 50%; } /* Notes panel */ .notes-panel { width: 280px; background: var(--surface); border-left: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; } .notes-panel h3 { font-size: 0.9rem; margin-bottom: 12px; } .notes-panel textarea { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 12px; font-size: 0.85rem; font-family: inherit; resize: none; outline: none; } .notes-panel textarea:focus { border-color: var(--accent); } .btn-save { margin-top: 10px; padding: 10px; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: opacity 0.15s; } .btn-save:hover { opacity: 0.9; } /* Footer */ footer { padding: 12px 24px; background: var(--surface); border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text2); display: flex; justify-content: space-between; } /* Toast notification */ .toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 8px; background: var(--green); color: white; font-size: 0.85rem; box-shadow: var(--shadow); z-index: 1000; animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: translateY(20px); opacity: 0; } } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text2); } /* Toast error variant */ .toast.error { background: var(--red); } /* Board toolbar (filters + create) */ .board-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); } .board-toolbar input[type="text"], .board-toolbar select { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; outline: none; } .board-toolbar input[type="text"]:focus, .board-toolbar select:focus { border-color: var(--accent); } .board-toolbar form { display: flex; gap: 8px; flex: 1; min-width: 260px; } .board-toolbar form input { flex: 1; } .btn-inline { margin-top: 0; padding: 9px 18px; } .card-id a { color: var(--text2); } .card-id a:hover { color: var(--accent2); } /* Focus view */ .focus-main { padding: 24px; max-width: 1100px; width: 100%; margin: 0 auto; } .focus-intro { color: var(--text2); margin-bottom: 20px; } .focus-empty { font-size: 1.05rem; padding: 32px 0; } .focus-group { margin-bottom: 28px; } .focus-group h2 { font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; } .focus-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .focus-card { margin-bottom: 0; cursor: default; } /* Error page */ .error-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; } .error-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 560px; text-align: center; } .error-box h2 { margin-bottom: 12px; } .error-box p { color: var(--text2); margin-bottom: 16px; line-height: 1.5; } /* Responsive */ @media (max-width: 768px) { .board-container { flex-direction: column; } .notes-panel { width: 100%; max-height: 200px; border-left: none; border-top: 1px solid var(--border); } .kanban-board { flex-direction: column; } .kanban-column { max-width: 100%; min-width: 100%; margin-right: 0; margin-bottom: 12px; } .project-grid { grid-template-columns: 1fr; } }