/* Tasks/OPS Page */
.tasks-page {
  min-height: 100vh;
  padding-bottom: 2rem;
}

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

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

.btn-new-task {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-new-task:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
  filter: brightness(1.1);
}

.btn-new-task:active {
  transform: translateY(0);
}

.btn-new-task i {
  width: 20px;
  height: 20px;
}

/* Tasks Kanban */
.tasks-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.task-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-column .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);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.task-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;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.03);
  min-height: 400px;
}

.empty-column {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.loading-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

.task-card-header {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.task-priority {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

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

.task-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

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

.task-due,
.task-assignee {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.task-due i,
.task-assignee i {
  width: 14px;
  height: 14px;
}

.task-due.overdue {
  color: #ef4444;
  font-weight: 600;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.task-btn {
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.05);
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-btn:hover {
  background: var(--accent-primary);
  color: white;
}

.task-btn i {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
  .tasks-kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tasks-kanban {
    grid-template-columns: 1fr;
  }
}
