/* Kanban Board Styles */

.kanban-board-page {
  padding: 0;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.board-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Board Filters Section */
.board-filters-section {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-dropdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.filter-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A78BFA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.filter-select:focus {
  outline: none;
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
  background: #1a1a2e;
  color: white;
  padding: 8px;
}

.clear-filters-btn {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #EF4444;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Active Filters */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  color: #A78BFA;
  font-size: 0.8125rem;
  font-weight: 500;
}

.filter-chip-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-chip-remove {
  padding: 0;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-chip-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 24px;
  align-items: flex-start;
  min-height: 600px;
}

/* Kanban Column */
.kanban-column {
  min-width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  min-height: 600px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  margin-bottom: 2px;
}

.column-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.column-count {
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: #A78BFA;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Column Cards Container */
.column-cards {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s ease;
}

.column-cards.drag-over {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.column-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* Kanban Card */
.kanban-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}

.kanban-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kanban-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: rotate(2deg);
}

/* Card Header Row */
.card-header-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.priority-flag {
  font-size: 0.875rem;
}

.social-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Title */
.card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Campaign Badge */
.card-campaign {
  margin-bottom: 12px;
}

.campaign-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 6px;
  color: #EC4899;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-assignee {
  display: flex;
  align-items: center;
}

.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-due-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kanban-card:hover .card-actions {
  opacity: 1;
}

.card-action-btn {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Notification Toast */
.kanban-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.kanban-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar Styling */
.column-cards::-webkit-scrollbar {
  width: 6px;
}

.column-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.column-cards::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

.column-cards::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .kanban-board-page {
    height: auto;
  }

  .board-header {
    flex-direction: column;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .board-filters-section {
    padding: 16px;
  }

  .filters-row {
    gap: 12px;
  }

  .filter-dropdown {
    min-width: calc(50% - 6px);
    flex: 1;
  }

  .clear-filters-btn {
    width: 100%;
    justify-content: center;
  }

  .active-filters {
    margin-top: 12px;
    padding-top: 12px;
  }

  .kanban-board {
    flex-direction: column;
    height: auto;
  }

  .kanban-column {
    min-width: 100%;
    max-width: 100%;
  }

  .column-cards {
    max-height: 400px;
  }

  .kanban-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

