@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* React Flow specific styles */
@import url('https://cdn.jsdelivr.net/npm/reactflow@11.11.4/dist/style.css');

/* Custom CSS variables for animations */
:root {
  --animation-duration: 5s;
}

/* Custom scrollbar styles */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  @apply bg-pipeline-secondary;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  @apply bg-pipeline-primary bg-opacity-50 rounded;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  @apply bg-pipeline-primary bg-opacity-75;
}

/* React Flow custom node styles */
.react-flow__node {
  font-family: inherit;
}

.react-flow__handle {
  @apply bg-pipeline-primary border-2 border-pipeline-bg;
  width: 10px;
  height: 10px;
}

.react-flow__edge-path {
  stroke: rgba(0, 212, 255, 0.5);
  stroke-width: 2;
}

.react-flow__edge.selected .react-flow__edge-path {
  stroke: rgba(0, 212, 255, 1);
  stroke-width: 3;
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.glow-accent {
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .react-flow__controls {
    @apply bottom-4 left-4;
  }
  
  .react-flow__minimap {
    @apply bottom-4 right-4 w-24 h-16;
  }
}

/* Status indicator styles */
.status-indicator {
  @apply w-3 h-3 rounded-full inline-block;
}

.status-processing {
  @apply bg-status-processing;
  animation: pulse 2s infinite;
}

.status-completed {
  @apply bg-status-completed;
}

.status-queued {
  @apply bg-status-queued;
}

.status-error {
  @apply bg-status-error;
  animation: pulse 1s infinite;
}

/* Chunk animation classes */
.chunk-dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #00ff7f 0%, #00d4ff 100%);
  border-radius: 50%;
  position: absolute;
  animation: chunk-flow var(--animation-duration) linear;
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.8);
}

/* File selector optimizations */
.file-item:hover {
  @apply bg-pipeline-secondary bg-opacity-50;
}

.file-item.selected {
  @apply bg-pipeline-primary bg-opacity-20 border-l-4 border-pipeline-primary;
}

/* Mobile menu styles */
.mobile-menu-enter {
  transform: translateX(-100%);
}

.mobile-menu-enter-active {
  transform: translateX(0);
  transition: transform 300ms ease-in-out;
}

.mobile-menu-exit {
  transform: translateX(0);
}

.mobile-menu-exit-active {
  transform: translateX(-100%);
  transition: transform 300ms ease-in-out;
}