/* Pipeline Page - Modern & Professional */
.pipeline-page {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.pipeline-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pipeline-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 600px;
}

.kanban-column {
  flex: 0 0 310px;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.column-header {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.column-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.column-title h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.column-count {
  min-width: 26px;
  height: 26px;
  padding: 0 0.5rem;
  border-radius: 13px;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.column-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
}

.column-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.03);
  border: 2px dashed rgba(139, 92, 246, 0.15);
  min-height: 400px;
  transition: all 0.25s ease;
}

.column-cards.drag-over {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-primary);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Lead Card */
.lead-card {
  padding: 1.125rem;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.12);
  cursor: grab;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card.dragging {
  opacity: 0.6;
  transform: rotate(3deg) scale(1.02);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
}

.temp-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
  box-shadow: 0 0 8px currentColor;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.card-meta i {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.card-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.75rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.card-id {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-score {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.card-score i {
  width: 13px;
  height: 13px;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1rem;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar */
.kanban-board::-webkit-scrollbar {
  height: 10px;
}

.kanban-board::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.05);
  border-radius: 5px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 5px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .pipeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .pipeline-stats {
    width: 100%;
    justify-content: space-between;
  }

  .kanban-column {
    flex: 0 0 285px;
  }
}
