* { margin: 0; padding: 0; box-sizing: border-box; } :root { --accent: #5b4db8; --accent-light: #e8e5f5; --bg: #fafbfc; --surface: #fff; --border: #e0e3e8; --text: #1a1a1a; --text-secondary: #667085; --success: #16a34a; --danger: #dc2626; --radius: 8px; --shadow: 0 1px 3px rgba(0,0,0,0.06); --shadow-md: 0 4px 8px rgba(0,0,0,0.08); } html, body { height: 100%; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; } .app { max-width: 800px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; } .header { margin-bottom: 32px; } .title { font-size: 32px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; } .stats { display: flex; gap: 24px; } .stat { display: flex; flex-direction: column; gap: 4px; } .stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); } .stat-count { font-size: 24px; font-weight: 700; color: var(--accent); } .create-section { background: var(--surface); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); } .create-form { display: flex; flex-direction: column; gap: 12px; } .form-row { display: flex; gap: 12px; align-items: flex-start; } .form-row:first-child { align-items: center; } .input { padding: 10px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; } .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); } .input-title { flex: 1; font-size: 16px; } .input-notes { flex: 1; resize: vertical; min-height: 60px; font-family: inherit; } .input-notes:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); } .form-controls { gap: 12px; } .form-controls .input { flex: 1; min-width: 120px; } .btn { padding: 10px 16px; border: none; border-radius: calc(var(--radius) - 2px); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; } .btn-primary { background: var(--accent); color: white; padding: 10px 20px; } .btn-primary:hover { background: #4a3fa3; } .btn-primary:active { transform: scale(0.98); } .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; font-size: 13px; } .btn-secondary:hover { background: #f5f5f5; } .btn-danger { background: #fee2e2; color: var(--danger); padding: 8px 12px; font-size: 13px; } .btn-danger:hover { background: #fecaca; } .controls-section { background: var(--surface); padding: 16px; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; } .search-input { width: 100%; } .filters { display: flex; gap: 12px; } .filters .input { flex: 1; min-width: 0; } .tasks-section { flex: 1; } .task-list { display: flex; flex-direction: column; gap: 12px; } .task-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); transition: box-shadow 0.2s, border-color 0.2s; } .task-item:focus-within { box-shadow: var(--shadow-md); border-color: var(--accent); } .task-item.completed { opacity: 0.6; } .task-checkbox { width: 20px; height: 20px; min-width: 20px; margin-top: 2px; cursor: pointer; accent-color: var(--accent); } .task-checkbox:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; } .task-content { flex: 1; min-width: 0; } .task-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .task-title { font-size: 15px; font-weight: 600; word-break: break-word; flex: 1; } .task-item.completed .task-title { text-decoration: line-through; color: var(--text-secondary); } .task-priority { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 2px 6px; border-radius: 3px; background: var(--accent-light); color: var(--accent); white-space: nowrap; flex-shrink: 0; } .task-priority.high { background: #fee2e2; color: var(--danger); } .task-priority.low { background: #e8f5e9; color: #2e7d32; } .task-notes { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; word-break: break-word; line-height: 1.4; } .task-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; flex-wrap: wrap; } .task-due { display: flex; align-items: center; gap: 4px; } .task-actions { display: flex; gap: 8px; } .btn-edit, .btn-delete { padding: 6px 10px; font-size: 12px; } .empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); font-size: 15px; } @media (max-width: 480px) { .app { padding: 16px; } .title { font-size: 24px; margin-bottom: 12px; } .stats { gap: 16px; } .stat-count { font-size: 20px; } .create-section { padding: 16px; margin-bottom: 16px; } .form-row { flex-direction: column; align-items: stretch; } .form-row:first-child { align-items: stretch; } .btn-primary { width: 100%; } .filters { flex-direction: column; } .filters .input { width: 100%; } .task-item { padding: 12px; gap: 10px; } .task-actions { width: 100%; gap: 8px; } .btn-edit, .btn-delete { flex: 1; } } @media (max-width: 390px) { .app { padding: 12px; } .title { font-size: 20px; margin-bottom: 10px; } .stat-label { font-size: 10px; } .stat-count { font-size: 18px; } .input { font-size: 16px; } .create-section { padding: 12px; } }