/* Task Section Redesign Styles */

/* Custom Dropdown Styles */
.custom-dropdown-wrapper {
  position: relative;
}

.custom-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.custom-dropdown-menu {
  animation: dropdownFadeIn 0.2s ease-out;
  background-color: #000000 !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dropdown-options {
  padding: 0.5rem;
}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.custom-dropdown-option:hover:not(.disabled),
.custom-dropdown-option.highlighted:not(.disabled) {
  background: hsl(var(--muted));
}

.custom-dropdown-option.selected {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.custom-dropdown-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inline Task Creator Styles */
.inline-task-creator-compact {
  transition: all 0.2s ease;
}

.inline-task-creator-compact:hover {
  transform: translateY(-2px);
}

.inline-task-creator-expanded {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
  }
}

/* Priority Pills */
.priority-pill {
  transition: all 0.2s ease;
  position: relative;
}

.priority-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: currentColor !important;
  transform: scale(1.02);
}

.priority-pill.priority-low.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.priority-pill.priority-medium.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #3b82f6;
}

.priority-pill.priority-high.active {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.5);
  color: #f97316;
}

.priority-pill.priority-urgent.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Filter Pills - Removed */

/* Task Card Enhancements */
.task-card-redesign {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.task-card-redesign::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all 0.2s ease;
}

.task-card-redesign.priority-low::before {
  background: #22c55e;
}

.task-card-redesign.priority-medium::before {
  background: #3b82f6;
}

.task-card-redesign.priority-high::before {
  background: #f97316;
}

.task-card-redesign.priority-urgent::before {
  background: #ef4444;
}

.task-card-redesign:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.task-card-redesign:hover .task-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.task-quick-actions {
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

/* Ensure quick actions are visible in list rows */
.task-row-redesign .task-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

/* List View Row Enhancements */
.task-row-redesign {
  transition: all 0.15s ease;
  border-left: 4px solid transparent;
}

.task-row-redesign:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: hsl(var(--accent));
}

.task-row-redesign.selected {
  background: rgba(var(--accent-rgb, 255, 215, 0), 0.1);
  border-left-color: hsl(var(--accent));
}

/* Kanban Card Enhancements */
.kanban-card-redesign {
  transition: all 0.2s ease;
  cursor: grab;
  position: relative;
  user-select: none;
}

.kanban-card-redesign:active {
  cursor: grabbing;
}

.kanban-card-redesign.dragging {
  opacity: 0.5 !important;
  transform: rotate(2deg) scale(0.95) !important;
  cursor: grabbing !important;
  z-index: 1000;
}

.kanban-card-redesign[draggable="true"] {
  cursor: grab;
}

.kanban-card-redesign::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.2s ease;
}

.kanban-card-redesign.priority-low::after {
  background: #22c55e;
}

.kanban-card-redesign.priority-medium::after {
  background: #3b82f6;
}

.kanban-card-redesign.priority-high::after {
  background: #f97316;
}

.kanban-card-redesign.priority-urgent::after {
  background: #ef4444;
}

.kanban-column.drag-over,
.kanban-column-content.drag-over {
  background: rgba(var(--accent-rgb, 255, 215, 0), 0.1) !important;
  border: 2px dashed hsl(var(--accent)) !important;
  border-radius: 0.5rem;
}

.kanban-column-content.drag-over {
  min-height: 100px;
}

/* Slide-in Panel */
.slide-in-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  min-width: 500px;
  max-width: 900px;
  background: hsl(var(--card));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.slide-in-panel.open {
  transform: translateX(0);
}

.slide-in-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.slide-in-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-stagger > * {
  animation: staggerFadeIn 0.3s ease-out forwards;
  opacity: 0;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Progress Ring */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .slide-in-panel {
    width: 70%;
    min-width: 400px;
  }
}

@media (max-width: 768px) {
  .slide-in-panel {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}
