* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f0f2f5; }

/* Status colors */
.status-pending   { background: #e5e7eb; color: #374151; }
.status-in_progress { background: #dbeafe; color: #1d4ed8; }
.status-done      { background: #d1fae5; color: #065f46; }
.status-bug       { background: #fee2e2; color: #991b1b; }
.status-skipped   { background: #f3f4f6; color: #9ca3af; }

/* Priority row colors */
.priority-low      { border-left: 3px solid #22c55e; }
.priority-medium   { border-left: 3px solid #eab308; }
.priority-high     { border-left: 3px solid #f97316; }
.priority-critical { border-left: 3px solid #ef4444; }

/* Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-in { animation: slideIn 0.2s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.15s ease; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: white;
  border-radius: 12px;
  max-width: 640px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: slideIn 0.2s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* Item done state */
.item-done { opacity: 0.6; }
.item-done .item-title { text-decoration: line-through; }

/* Progress bar */
.progress-bar {
  height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px; transition: width 0.4s ease;
}

/* Sidebar */
.sidebar-item {
  cursor: pointer; padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: #374151; transition: all 0.15s; margin-bottom: 2px;
}
.sidebar-item:hover { background: #f3f4f6; }
.sidebar-item.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

/* Status button */
.status-btn {
  cursor: pointer; padding: 5px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; border: none;
  transition: all 0.15s; white-space: nowrap; display: inline-flex; align-items: center;
}
.status-btn:hover { filter: brightness(0.92); transform: scale(1.03); }
.status-btn.active-status {
  outline: 2px solid rgba(0,0,0,0.2);
  outline-offset: 1px;
  transform: scale(1.06);
}

/* Comment box */
.comment-item {
  background: #f8fafc; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px;
  border-left: 3px solid #cbd5e1;
}

/* Category badge */
.cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}

/* Item row hover */
.item-row { transition: background 0.1s; cursor: default; }
.item-row:hover { background: #f9fafb; }

/* Hidden */
.hidden { display: none !important; }

/* Mark (search highlight) */
mark { background: #fef08a; border-radius: 2px; padding: 0 1px; }
