/* ===== Reset & Base ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --primary: #4f46e5; --primary-dark: #4338ca; --primary-light: #eef2ff; --primary-subtle: #e0e7ff; --danger: #dc2626; --danger-light: #fef2f2; --amber: #d97706; --amber-light: #fffbeb; --sky: #0284c7; --sky-light: #f0f9ff; --emerald: #059669; --emerald-light: #ecfdf5; --bg: #f8fafc; --bg-secondary: #f1f5f9; --white: #ffffff; --text: #1e293b; --text-secondary: #475569; --text-muted: #94a3b8; --border: #e2e8f0; --border-light: #f1f5f9; --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04); --radius: 8px; --radius-sm: 6px; --radius-lg: 12px; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; } a { color: var(--primary); text-decoration: none; } a:hover { color: var(--primary-dark); } /* ===== App Layout ===== */ .app { min-height: 100vh; display: flex; flex-direction: column; } .app-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 28px; height: 56px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-xs); } .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; } .logo-icon { background: var(--primary); color: white; width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; letter-spacing: -0.5px; } .logo-text { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; } .app-main { flex: 1; max-width: 1040px; width: 100%; margin: 0 auto; padding: 28px 24px; } /* ===== Cards ===== */ .card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-xs); border: 1px solid var(--border); overflow: hidden; } .card-header { padding: 14px 18px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; } .card-header h2 { font-size: 14px; font-weight: 600; color: var(--text); } .card-body { padding: 18px; } /* ===== Buttons ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s ease; text-decoration: none; letter-spacing: -0.01em; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: var(--shadow-sm); } .btn-secondary { background: var(--white); color: var(--text-secondary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--bg); color: var(--text); } .btn-danger { background: var(--danger); color: white; } .btn-danger:hover { background: #b91c1c; color: white; } .btn-sm { padding: 4px 10px; font-size: 12px; } /* ===== Forms ===== */ .form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text-secondary); } .form-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08); } textarea.form-input { resize: vertical; min-height: 76px; } .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; } /* ===== Checkbox list ===== */ .checkbox-list { display: flex; flex-direction: column; gap: 4px; } .checkbox-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.12s; font-size: 14px; color: var(--text); } .checkbox-item:hover { background: var(--bg); } .checkbox-item.checked { background: var(--primary-light); } /* ===== Dashboard ===== */ .dashboard-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; } @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } } .section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 10px; } /* ===== Project Cards ===== */ .projects-list { display: flex; flex-direction: column; gap: 6px; } .project-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: all 0.15s ease; } .project-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); color: var(--text); } .project-card-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; flex-shrink: 0; } .project-card-info { flex: 1; min-width: 0; } .project-card-name { font-weight: 600; font-size: 14px; color: var(--text); } .project-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; } .project-card-arrow { font-size: 20px; color: var(--text-muted); } /* ===== Sidebar ===== */ .sidebar { display: flex; flex-direction: column; gap: 14px; } /* ===== User List ===== */ .user-list { list-style: none; display: flex; flex-direction: column; gap: 6px; } .user-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; } .user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; } .user-info-name { font-weight: 500; color: var(--text); } .user-info-email { font-size: 11px; color: var(--text-muted); } /* ===== Empty state ===== */ .empty-state { text-align: center; padding: 28px 16px; color: var(--text-muted); } .empty-state-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-secondary); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--text-muted); } /* ===== Project Detail ===== */ .project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; } .project-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; } .project-header-actions { display: flex; gap: 8px; } .members-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; } .member-chip { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; background: var(--white); border-radius: 20px; border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text-secondary); } .member-chip .user-avatar { width: 22px; height: 22px; font-size: 10px; } .detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; } /* ===== Kanban Board ===== */ .kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; } @media (max-width: 768px) { .kanban-board { grid-template-columns: 1fr; } } .kanban-column { background: var(--bg-secondary); border-radius: var(--radius); padding: 14px; min-height: 180px; } .kanban-column-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; } .kanban-column-count { background: var(--border); padding: 1px 6px; border-radius: 8px; font-size: 10px; color: var(--text-secondary); } .kanban-card { background: var(--white); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 6px; border: 1px solid var(--border); text-decoration: none; color: var(--text); display: block; transition: box-shadow 0.12s ease; } .kanban-card:hover { box-shadow: var(--shadow-sm); color: var(--text); } .kanban-card-title { font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--text); } .kanban-card-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 6px; } .kanban-card-meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; } /* ===== Priority Badges ===== */ .priority-badge { padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; } .priority-badge.high { background: var(--danger-light); color: var(--danger); } .priority-badge.medium { background: var(--amber-light); color: var(--amber); } .priority-badge.low { background: var(--sky-light); color: var(--sky); } .status-select { padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; background: var(--white); color: var(--text-secondary); cursor: pointer; } /* ===== Task Detail ===== */ .task-detail-header { margin-bottom: 20px; } .task-detail-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; } .task-detail-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); } .task-detail-meta span { display: flex; align-items: center; gap: 3px; } .task-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; } @media (max-width: 768px) { .task-detail-grid { grid-template-columns: 1fr; } } .task-description { padding: 14px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.65; white-space: pre-wrap; min-height: 48px; color: var(--text-secondary); } /* ===== Comments ===== */ .comment-list { display: flex; flex-direction: column; gap: 14px; } .comment-item { display: flex; gap: 8px; } .comment-body { flex: 1; } .comment-author { font-weight: 600; font-size: 12px; color: var(--text); } .comment-time { font-size: 11px; color: var(--text-muted); margin-left: 6px; font-weight: 400; } .comment-text { font-size: 13px; margin-top: 2px; line-height: 1.5; color: var(--text-secondary); } .comment-form { display: flex; gap: 8px; margin-top: 14px; } .comment-form .form-input { flex: 1; } /* ===== Page form ===== */ .page-form { max-width: 580px; margin: 0 auto; } .page-form h1 { font-size: 22px; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.3px; } /* ===== Back link ===== */ .back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; } .back-link:hover { color: var(--primary); } /* ===== Loading & Error ===== */ .loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; } .error-msg { background: var(--danger-light); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; } /* ===== Search Bar ===== */ .search-bar { display: flex; gap: 6px; margin-left: auto; } .search-input { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; width: 240px; color: var(--text); background: var(--bg); transition: border-color 0.15s ease; } .search-input:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08); } .search-btn { padding: 6px 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; cursor: pointer; } .search-btn:hover { background: var(--primary-dark); } /* ===== Tags ===== */ .tag-list { display: flex; flex-direction: column; gap: 5px; } .tag-item { display: flex; align-items: center; justify-content: space-between; } .tag-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; border: 1px solid; background: transparent; } .tag-badge-sm { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; } .tag-delete { background: none; border: none; font-size: 15px; color: var(--text-muted); cursor: pointer; padding: 0 3px; } .tag-delete:hover { color: var(--danger); } .tag-add-btn { background: none; border: 1px dashed var(--border); padding: 2px 8px; border-radius: 10px; font-size: 11px; cursor: pointer; color: var(--text-muted); } .tag-add-btn:hover { border-color: var(--primary); color: var(--primary); } .tag-picker { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; } /* ===== Stats Bar ===== */ .stats-bar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; } .stat-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; flex: 1; min-width: 90px; text-align: center; } .stat-value { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; } .stat-value.stat-overdue { color: var(--danger); } .stat-label { font-size: 11px; color: var(--text-muted); margin-top: 1px; } /* ===== Filter Bar ===== */ .filter-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; } .filter-select { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; background: var(--white); color: var(--text-secondary); cursor: pointer; } .filter-select:focus { outline: none; border-color: var(--primary); } /* ===== Activity Feed ===== */ .activity-feed { display: flex; flex-direction: column; } .activity-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-light); } .activity-item:last-child { border-bottom: none; } .activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; } .activity-content { flex: 1; } .activity-text { font-size: 12px; color: var(--text-secondary); } .activity-time { font-size: 10px; color: var(--text-muted); margin-top: 1px; } /* ===== Badges ===== */ .archived-badge { display: inline-block; padding: 1px 6px; background: var(--bg-secondary); color: var(--text-muted); border-radius: 3px; font-size: 10px; font-weight: 500; margin-left: 8px; vertical-align: middle; } .role-badge { font-size: 9px; padding: 1px 4px; background: var(--primary-light); color: var(--primary); border-radius: 3px; margin-left: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; } /* ===== Task status dots ===== */ .task-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .task-status-dot.todo { background: var(--text-muted); } .task-status-dot.in_progress { background: var(--sky); } .task-status-dot.done { background: var(--emerald); } .task-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; color: var(--text); } .task-item:last-child { border-bottom: none; } .task-info { flex: 1; min-width: 0; } .task-title { font-weight: 500; font-size: 13px; color: var(--text); } .task-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; margin-top: 2px; }