/* projects.css — project cards, grid, detail modal, dashboard preview */
.projects-grid{display:flex;flex-direction:column;gap:10px}
.project-card{
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  display:flex;overflow:hidden;cursor:pointer;position:relative;
  transition:transform .15s,box-shadow .15s;width:100%;box-sizing:border-box;
}
.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.project-card-color{width:5px;flex-shrink:0}
.project-card-body{flex:1;padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.project-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.project-card-name{font-weight:700;font-size:.95rem;color:var(--text);line-height:1.3;flex:1;min-width:0;word-break:break-word}
.project-card-actions{display:flex;gap:4px;flex-shrink:0}
.project-card-desc{font-size:.82rem;color:var(--text2);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.72rem;color:var(--text3);margin-top:auto;flex-wrap:wrap}
.project-card-stats{display:flex;align-items:center;gap:4px}
.project-card-date{font-size:.7rem}

/* Status badge */
.project-status-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;border-radius:20px;font-size:.72rem;font-weight:600;white-space:nowrap;
}

/* Dashboard preview */
.dash-project-row{
  display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;
  cursor:pointer;transition:background .15s;
}
.dash-project-row:hover{background:var(--surface2)}
.dash-project-color{width:4px;height:32px;border-radius:4px;flex-shrink:0}
.dash-project-main{flex:1;min-width:0}
.dash-project-name{font-weight:600;font-size:.85rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-project-meta{font-size:.72rem;color:var(--text3)}

/* Project detail modal */
.project-detail{max-height:85vh;display:flex;flex-direction:column}
.pd-header{
  display:flex;align-items:center;gap:12px;padding:16px 18px;
  border-bottom:2px solid var(--accent);position:relative;
}
.pd-color-indicator{width:6px;height:100%;position:absolute;left:0;top:0;border-radius:0 4px 4px 0}
.pd-header-info{flex:1;min-width:0;padding-left:8px}
.pd-name{font-size:1.1rem;font-weight:800;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.78rem;color:var(--text3);margin-top:4px}
.pd-body{padding:16px 18px;overflow-y:auto;flex:1}
.pd-section{margin-bottom:20px}
.pd-section-title{font-weight:700;font-size:.88rem;color:var(--text);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.pd-list{display:flex;flex-direction:column;gap:6px}
.pd-list-item{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;
  background:var(--surface2);font-size:.85rem;color:var(--text);cursor:pointer;
  transition:background .15s;
}
.pd-list-item:hover{background:var(--border)}
.pd-list-item.done{opacity:.6}
.pd-list-item .task-check-btn{flex-shrink:0}
.pd-item-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-item-meta{font-size:.72rem;color:var(--text3);flex-shrink:0}
.pd-footer{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  padding:12px 18px;border-top:2px solid var(--accent);flex-wrap:wrap;
}

/* Add project modal extras */
.color-swatches{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.color-swatch{
  width:28px;height:28px;border-radius:50%;border:2px solid transparent;
  cursor:pointer;transition:all .15s;
}
.color-swatch:hover{transform:scale(1.15)}
.color-swatch.active{border-color:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--text)}

/* Stats row for projects */
.project-stats-row{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.project-stat-card{
  flex:1;min-width:100px;padding:12px;border-radius:12px;
  background:var(--surface);border:1px solid var(--border);text-align:center;
}
.project-stat-value{font-size:1.4rem;font-weight:800;color:var(--accent)}
.project-stat-label{font-size:.72rem;color:var(--text3);margin-top:2px}

/* Empty state for preview */
.preview-empty{font-size:.82rem;color:var(--text3);text-align:center;padding:16px}
