/* 自定义样式补充 - Tailwind 无法覆盖的部分 */
/* 时长滑块样式 */
.duration-slider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--progress, 0%), #e5e7eb var(--progress, 0%), #e5e7eb 100%);
  border-radius: 8px;
  outline: none;
  transition: background 0.1s;
}
.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
  transition: transform 0.1s;
}
.duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.duration-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}
.duration-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}
.duration-slider::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: #e5e7eb;
}


/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 任务卡片过渡动画 */
.task-enter-active,
.task-leave-active {
  transition: all 0.3s ease;
}
.task-enter-from {
  opacity: 0;
  transform: translateY(-10px);
}
.task-leave-to {
  opacity: 0;
  transform: translateX(20px);
}

/* 状态指示灯动画 */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-dot-active {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* 左侧面板固定宽度 */
.panel-left {
  width: 400px;
  min-width: 400px;
  max-height: calc(100vh - 64px - 40px);
  overflow-y: auto;
}

/* 右侧主区域自适应 */
.panel-right {
  flex: 1;
  max-height: calc(100vh - 64px - 40px);
  overflow-y: auto;
}

/* 引导遮罩 */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 高亮效果（引导时使用） */
.highlight-pulse {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

/* 模态框动画 */
.modal-enter-active,
.modal-leave-active {
  transition: opacity 0.2s ease;
}
.modal-enter-from,
.modal-leave-to {
  opacity: 0;
}

/* 响应式：移动端 */
@media (max-width: 768px) {
  .panel-left {
    width: 100%;
    min-width: unset;
    max-height: unset;
  }
  .layout-main {
    flex-direction: column;
  }
  .panel-right {
    max-height: unset;
  }
}

/* 费用标签 */
.cost-badge {
  font-variant-numeric: tabular-nums;
}

/* 视频预览容器 */
.video-preview-container {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-preview-container video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}
