/* === Base === */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0a0a; color: #f5f5f5; }

/* === Layout === */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 280px; flex-shrink: 0; }
.main-content { flex: 1; min-width: 0; overflow-x: hidden; }

/* === Kanban === */
.kanban-board {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem;
  height: calc(100vh - 12rem); align-items: flex-start;
}
.kanban-column { min-width: 300px; max-width: 300px; flex-shrink: 0; }
.kanban-column-body { min-height: 80px; }
.kanban-card {
  background: #141414; border-radius: 0.5rem; padding: 0.875rem; margin-bottom: 0.5rem;
  border: 1px solid #2a2a2a; cursor: grab; transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(191, 255, 0, 0.06);
  transform: translateY(-1px); border-color: #3a3a3a;
}
.kanban-ghost {
  opacity: 0.3; background: rgba(191, 255, 0, 0.05);
  border: 2px dashed #BFFF00; border-radius: 0.5rem;
}
.kanban-ghost > * { visibility: hidden; }
.kanban-chosen {
  transform: rotate(1.5deg) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* === Priority dots === */
.priority-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.priority-low { background: #666; }
.priority-medium { background: #3b82f6; }
.priority-high { background: #f59e0b; }
.priority-urgent { background: #ef4444; }

/* === Progress bar === */
.progress-bar { height: 3px; border-radius: 2px; background: #2a2a2a; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: #BFFF00; transition: width 0.3s ease; }

/* === Avatar === */
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: white; border: 2px solid #1a1a1a;
}
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }

/* === Page transitions === */
.page-enter { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px); z-index: 40;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.modal-content {
  background: #1a1a1a; border-radius: 0.75rem; padding: 1.5rem;
  max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); border: 1px solid #2a2a2a;
}

/* === Toast === */
.toast {
  padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.25s ease-out;
  display: flex; align-items: center; gap: 0.5rem;
}
.toast-success { background: #0a1a00; color: #BFFF00; border: 1px solid #2a3a1a; }
.toast-error { background: #1a0a0a; color: #ff6b6b; border: 1px solid #3a1a1a; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Tabs === */
.tab { padding: 0.5rem 1rem; border-bottom: 2px solid transparent; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: #666; }
.tab:hover { color: #f5f5f5; }
.tab.active { color: #BFFF00; border-bottom-color: #BFFF00; }

/* === Status badges === */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-draft { background: #2a2a2a; color: #888; }
.badge-sent { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-paid { background: rgba(191, 255, 0, 0.1); color: #BFFF00; }
.badge-overdue { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* === Checklist === */
.task-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0;
  border-bottom: 1px solid #1a1a1a;
}
.task-item:last-child { border-bottom: none; }
.task-checkbox { width: 18px; height: 18px; border-radius: 4px; cursor: pointer; accent-color: #BFFF00; }
.task-done { text-decoration: line-through; color: #555; }

/* === Timeline === */
.timeline-item { position: relative; padding-left: 2rem; padding-bottom: 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 0;
  width: 2px; background: #2a2a2a;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid #2a2a2a; background: #141414;
}
.timeline-dot.done { background: #BFFF00; border-color: #BFFF00; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* === Form inputs === */
.input {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #2a2a2a; border-radius: 0.375rem;
  font-size: 0.875rem; background: #111; color: #f5f5f5; transition: border-color 0.15s;
}
.input:focus { outline: none; border-color: #BFFF00; box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.1); }
.input::placeholder { color: #555; }
select.input { color: #f5f5f5; }
select.input option { background: #1a1a1a; color: #f5f5f5; }
.input-label { display: block; font-size: 0.75rem; font-weight: 500; color: #888; margin-bottom: 0.25rem; }

.btn {
  padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; border: none;
}
.btn-primary { background: #BFFF00; color: #0a0a0a; }
.btn-primary:hover { background: #a8e600; }
.btn-secondary { background: #1a1a1a; color: #ccc; border: 1px solid #2a2a2a; }
.btn-secondary:hover { background: #222; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-ghost { background: transparent; color: #888; }
.btn-ghost:hover { background: #1a1a1a; color: #f5f5f5; }
.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.8rem; }

/* === View toggle === */
.view-toggle { display: inline-flex; border-radius: 0.375rem; overflow: hidden; border: 1px solid #2a2a2a; }
.view-toggle button {
  padding: 0.375rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  background: transparent; color: #888; border: none; cursor: pointer; transition: all 0.15s;
}
.view-toggle button.active { background: #BFFF00; color: #0a0a0a; }
.view-toggle button:hover:not(.active) { background: #1a1a1a; }

/* === Project type tabs === */
.type-tabs { display: flex; gap: 0; border-bottom: 1px solid #2a2a2a; margin-bottom: 1rem; }
.type-tab {
  padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  color: #666; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.type-tab:hover { color: #ccc; }
.type-tab.active { color: #BFFF00; border-bottom-color: #BFFF00; }

/* === Card surfaces === */
.card { background: #141414; border: 1px solid #2a2a2a; border-radius: 0.75rem; }

/* === Line clamp === */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === Hidden utility === */
.hidden { display: none !important; }

/* === SEO Position Badges === */
.seo-badge {
  display: inline-block; padding: 2px 10px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.seo-badge-page1 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.seo-badge-page2 { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.seo-badge-page3 { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.seo-badge-notop { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.seo-badge-none  { background: #2a2a2a; color: #888; }

/* === SEO Change Indicators === */
.seo-change-up { color: #22c55e; font-weight: 600; }
.seo-change-down { color: #ef4444; font-weight: 600; }

/* === SEO Customer Group === */
.seo-group-header {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem;
  cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #1a1a1a;
}
.seo-group-header:hover { background: #1a1a1a; }

/* === SEO Crawl Progress === */
.crawl-progress-bar {
  height: 4px; border-radius: 2px; background: #2a2a2a; overflow: hidden;
}
.crawl-progress-fill {
  height: 100%; border-radius: 2px; background: #BFFF00; transition: width 0.5s ease;
}

/* === SEO Count Badges === */
.seo-count-badge {
  display: inline-block; min-width: 22px; text-align: center;
  padding: 1px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
}
