/* ==================== HH TaskForge v4.0 — Complete Stylesheet ==================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}
input, select, textarea, button { font-family: inherit; font-size: inherit; }
a { color: #60a5fa; text-decoration: none; }

/* --- Login Screen --- */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.login-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 48px 40px;
  width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-logo { font-size: 48px; margin-bottom: 12px; }
.login-box h1 { font-size: 1.8rem; margin-bottom: 4px; color: #f1f5f9; }
.login-subtitle { color: #94a3b8; margin-bottom: 28px; font-size: 0.9rem; }
.login-box input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.login-box input:focus { outline: none; border-color: #3b82f6; }
.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.login-box button:hover { background: #2563eb; }
.error { color: #f87171; margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }

/* --- Top Nav --- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { font-size: 24px; }
.nav-left h1 { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; }
.version-badge {
  background: #1e3a5f;
  color: #60a5fa;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-user { color: #94a3b8; font-size: 0.9rem; }
.nav-role {
  background: #334155;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* WebSocket indicator */
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}
.ws-connected { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.ws-disconnected { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* --- Summary Cards --- */
.summary-bar {
  display: flex;
  gap: 12px;
  padding: 20px 24px 0;
  overflow-x: auto;
}
.summary-card {
  flex: 1;
  min-width: 100px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.summary-card:hover { border-color: #475569; transform: translateY(-2px); }
.sc-number { font-size: 2rem; font-weight: 700; color: #f1f5f9; }
.sc-label { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.sc-my-tasks .sc-number { color: #a78bfa; }
.sc-progress .sc-number { color: #3b82f6; }
.sc-blocked .sc-number { color: #f59e0b; }
.sc-overdue .sc-number { color: #ef4444; }
.sc-due-soon .sc-number { color: #f97316; }
.sc-done .sc-number { color: #22c55e; }

/* --- Toolbar --- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
#search-box {
  padding: 8px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  min-width: 200px;
}
#search-box:focus { outline: none; border-color: #3b82f6; }
.toolbar select {
  padding: 8px 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  cursor: pointer;
}
.toolbar select:focus { outline: none; border-color: #3b82f6; }

/* --- AI Status Bar --- */
.ai-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px;
  padding: 10px 16px;
  background: #1a2744;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #93c5fd;
}
.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Buttons --- */
.btn-primary {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #2563eb; }
.btn-outline {
  padding: 8px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: #60a5fa; color: #60a5fa; }
.btn-ghost {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
}
.btn-ghost:hover { color: #e2e8f0; background: #334155; }
.btn-danger {
  padding: 8px 16px;
  border: 1px solid #7f1d1d;
  border-radius: 8px;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: #7f1d1d; color: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* --- Task List View --- */
.task-container { padding: 0 24px 24px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }

.task-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid #475569;
}
.task-card:hover { border-color: #475569; background: #253349; transform: translateX(2px); }
.task-card.status-in-progress { border-left-color: #3b82f6; }
.task-card.status-done { border-left-color: #22c55e; }
.task-card.status-blocked { border-left-color: #f59e0b; }
.task-card.status-overdue { border-left-color: #ef4444; }

.task-card-header { display: flex; align-items: flex-start; margin-bottom: 6px; gap: 8px; }
.task-card-header h3 { font-size: 1rem; font-weight: 600; color: #f1f5f9; flex: 1; }
.task-card-badges { flex-shrink: 0; display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-status { background: #1e3a5f; color: #93c5fd; }
.badge-not-started { background: #334155; color: #94a3b8; }
.badge-done { background: #14532d; color: #86efac; }
.badge-blocked { background: #451a03; color: #fbbf24; }
.badge-overdue { background: #450a0a; color: #fca5a5; }
.badge-priority-low { background: #1e3a5f; color: #93c5fd; }
.badge-priority-medium { background: #1e3a5f; color: #93c5fd; }
.badge-priority-high { background: #7c2d12; color: #fdba74; }
.badge-priority-urgent { background: #450a0a; color: #fca5a5; }

.task-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #64748b;
}
.assignee-chip {
  background: #1e293b;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #334155;
}
.task-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.4;
}
.task-card-due {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.due-overdue { background: #450a0a; color: #fca5a5; }
.due-soon { background: #451a03; color: #fbbf24; }
.due-normal { background: #1e293b; color: #64748b; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }

/* --- Kanban View --- */
.kanban-container {
  display: flex;
  gap: 16px;
  padding: 0 24px 24px;
  overflow-x: auto;
  min-height: 400px;
}
.kanban-column {
  flex: 1;
  min-width: 250px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
}
.kanban-header {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #334155;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kh-not-started { color: #94a3b8; }
.kh-in-progress { color: #60a5fa; }
.kh-blocked { color: #fbbf24; }
.kh-done { color: #86efac; }
.kanban-count {
  background: #334155;
  color: #94a3b8;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}
.kanban-cards {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}
.kanban-cards.drag-over { background: #253349; border-radius: 0 0 12px 12px; }
.kanban-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.kanban-card:hover { border-color: #475569; }
.kanban-card.dragging { opacity: 0.5; }
.kanban-card h4 { font-size: 0.9rem; color: #f1f5f9; margin-bottom: 6px; }
.kanban-card-meta { font-size: 0.75rem; color: #64748b; display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Modals --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.modal-md { max-width: 650px; }
.modal-lg { max-width: 950px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #334155;
}
.modal-header h2 { font-size: 1.2rem; color: #f1f5f9; }
.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: #334155; color: #f1f5f9; }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #334155;
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #3b82f6; }
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* --- Detail Panel --- */
.detail-body { display: flex; gap: 24px; }
.detail-fields { flex: 1; min-width: 0; }
.detail-comments-panel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.detail-comments-panel h3 { font-size: 1rem; margin-bottom: 12px; color: #f1f5f9; }
.detail-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1a2744;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  margin-bottom: 12px;
}
.unsaved-note { font-size: 0.85rem; color: #fbbf24; }
.detail-actions { margin-top: 8px; }

/* --- Comments --- */
.comments-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
  margin-bottom: 12px;
}
.comment {
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; color: #60a5fa; font-size: 0.85rem; }
.comment-time { font-size: 0.75rem; color: #64748b; margin-left: 8px; }
.comment-text { margin-top: 6px; font-size: 0.9rem; color: #cbd5e1; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.comment-input { display: flex; flex-direction: column; gap: 8px; }
.comment-input textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  resize: vertical;
}
.comment-input textarea:focus { outline: none; border-color: #3b82f6; }

/* --- Subtasks --- */
.subtask-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid #1e293b;
}
.subtask-item input[type="checkbox"] { cursor: pointer; }
.subtask-item .subtask-text { flex: 1; font-size: 0.9rem; }
.subtask-item .done-text { text-decoration: line-through; color: #64748b; }
.subtask-item button {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.subtask-item button:hover { background: #334155; color: #f87171; }
.subtask-add { display: flex; gap: 8px; }
.subtask-add input { flex: 1; }
.subtask-progress {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
}
.subtask-progress-bar {
  height: 4px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.subtask-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.3s;
}

/* --- Attachments --- */
.attachment-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  transition: border-color 0.2s;
}
.attachment-item:hover { border-color: #334155; }
.attachment-icon { font-size: 1.3rem; flex-shrink: 0; }
.attachment-info { flex: 1; min-width: 0; }
.attachment-name {
  display: block;
  font-size: 0.9rem;
  color: #60a5fa;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-name:hover { text-decoration: underline; }
.attachment-meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.attachment-delete {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.attachment-delete:hover { background: #334155; color: #f87171; }
.attachment-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-hint { font-size: 0.75rem; color: #64748b; }
.upload-progress {
  margin-top: 8px;
  padding: 8px;
  background: #0f172a;
  border-radius: 6px;
}
.upload-bar {
  height: 4px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.upload-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
  width: 100%;
  animation: uploadPulse 1.5s infinite;
}
@keyframes uploadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
#upload-status { font-size: 0.8rem; color: #93c5fd; }

/* --- Activity Log --- */
.activity-list { max-height: 500px; overflow-y: auto; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: #334155;
}
.activity-content { flex: 1; }
.activity-action { color: #e2e8f0; }
.activity-action strong { color: #60a5fa; }
.activity-details { color: #64748b; font-size: 0.8rem; margin-top: 2px; }
.activity-time { color: #475569; font-size: 0.75rem; flex-shrink: 0; }

/* --- User Management --- */
.user-table { margin-bottom: 24px; }
.user-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 0.8fr 0.8fr 1.2fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
  align-items: center;
}
.user-header {
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #334155;
}
.user-name { color: #f1f5f9; font-weight: 600; }
.user-email { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; }
.user-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.role-admin { background: #312e81; color: #a78bfa; }
.role-manager { background: #1e3a5f; color: #93c5fd; }
.role-user { background: #334155; color: #94a3b8; }
.user-status { font-size: 0.8rem; }
.user-status.active { color: #22c55e; }
.user-status.inactive { color: #ef4444; }
.user-login { color: #64748b; font-size: 0.8rem; }
.add-user-section {
  padding-top: 20px;
  border-top: 1px solid #334155;
}
.add-user-section h3 {
  color: #f1f5f9;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #1e293b;
  border: 1px solid #334155;
  border-left: 4px solid #3b82f6;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease;
  max-width: 350px;
}
.toast-fade {
  opacity: 0;
  transition: opacity 0.5s;
}
@keyframes toastIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Bulk Action Bar --- */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 24px;
  padding: 10px 16px;
  background: #1e3a5f;
  border: 1px solid #2563eb;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.bulk-left { display: flex; align-items: center; gap: 10px; }
.bulk-left input[type="checkbox"] { cursor: pointer; }
.bulk-right { display: flex; align-items: center; gap: 8px; }
.bulk-right select {
  padding: 6px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.85rem;
}
#bulk-count { color: #93c5fd; font-weight: 600; }

/* Task checkbox in cards */
.task-checkbox {
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
  width: 16px;
  height: 16px;
}
.task-card.task-selected {
  border-color: #3b82f6;
  background: #1e3a5f;
}
/* --- Templates --- */
.template-list { max-height: 500px; overflow-y: auto; }
.template-group { margin-bottom: 16px; }
.template-group-title { font-size: 0.85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #1e293b; }
.template-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.template-card:hover { border-color: #3b82f6; background: #1e3a5f; }
.template-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.template-card-meta { display: flex; gap: 12px; font-size: 0.8rem; color: #94a3b8; }
.template-card-desc { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

.template-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.template-table th { text-align: left; padding: 8px; border-bottom: 2px solid #334155; color: #94a3b8; font-weight: 600; }
.template-table td { padding: 8px; border-bottom: 1px solid #1e293b; }
.template-table tr:hover td { background: #1e293b; }

.template-manager-list { max-height: 300px; overflow-y: auto; margin-bottom: 16px; }

.tmpl-subtasks-preview { margin-top: 8px; }
.tmpl-subtask-list { list-style: none; padding: 0; margin: 4px 0 0 0; }
.tmpl-subtask-list li { padding: 4px 8px; font-size: 0.85rem; color: #94a3b8; border-left: 2px solid #334155; margin-bottom: 2px; }

/* --- Recurrence --- */
.recurrence-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recurrence-options { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.recurrence-options label { color: #94a3b8; font-weight: normal; }
.recurrence-options input[type="number"] {
  background: #0f172a; border: 1px solid #334155; border-radius: 4px;
  color: #e2e8f0; padding: 4px 8px; font-size: 0.85rem;
}
.recurrence-options input[type="date"] {
  background: #0f172a; border: 1px solid #334155; border-radius: 4px;
  color: #e2e8f0; padding: 4px 8px; font-size: 0.85rem;
}
.recurrence-info { font-size: 0.8rem; color: #60a5fa; margin-top: 4px; padding: 6px 10px; background: #1e3a5f; border-radius: 6px; }
.badge-recurrence { background: #1e3a5f; color: #60a5fa; font-size: 0.7rem; }
.recurrence-label { font-size: 0.75rem; color: #60a5fa; }

/* --- Utilities --- */
.hidden { display: none !important; }
.muted { color: #64748b; font-size: 0.9rem; text-align: center; padding: 20px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .summary-bar { gap: 8px; padding: 12px 16px 0; }
  .summary-card { min-width: 70px; padding: 12px 6px; }
  .sc-number { font-size: 1.5rem; }
  .sc-label { font-size: 0.65rem; }
  .toolbar { padding: 12px 16px; }
  #search-box { min-width: 150px; }
  .task-container, .kanban-container { padding: 0 16px 16px; }
  .detail-body { flex-direction: column; }
  .detail-comments-panel { width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .modal { padding: 10px; }
  .user-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .user-header { display: none; }
}

/* --- Rich Comment Formatting --- */
.comment-text strong, .comment-text b { color: #f1f5f9; font-weight: 600; }
.comment-text em, .comment-text i { color: #94a3b8; }
.comment-text code {
  background: #1e293b;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85em;
  color: #a5b4fc;
}
.comment-text .comment-heading {
  display: block;
  font-weight: 700;
  color: #60a5fa;
  font-size: 1em;
  margin-top: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 2px;
}
.comment-text .comment-subheading {
  display: block;
  font-weight: 600;
  color: #93c5fd;
  font-size: 0.95em;
  margin-top: 6px;
}
.comment-text .comment-bullet {
  display: block;
  padding-left: 16px;
  text-indent: -12px;
}
.comment-text .comment-bullet::before {
  content: "• ";
  color: #60a5fa;
  font-weight: 700;
}
.comment-text .comment-separator {
  display: block;
  border-top: 1px solid #1e293b;
  margin: 6px 0;
}
