/* 自定义样式 */

/* 拖拽区域动画效果 */
#dropZone.drag-over {
    @apply border-primary-focus bg-primary/10 scale-105;
}

/* 进度条动画 */
.progress {
    transition: all 0.3s ease;
}

/* 步骤指示器动画 */
.step {
    transition: all 0.3s ease;
}

.step.step-primary {
    animation: pulse 1s infinite;
}

/* 音频可视化容器 */
.audio-visualizer {
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.audio-visualizer canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* 波形动画 */
@keyframes waveform {
    0% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0.5); }
}

.wave-bar {
    animation: waveform 1s ease-in-out infinite;
}

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* 成功动画 */
@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-animation {
    animation: bounce-in 0.6s ease-out;
}

/* 错误动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-animation {
    animation: shake 0.5s ease-in-out;
}

/* 主题切换动画 */
html {
    transition: color-scheme 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* 文件拖拽样式 */
.file-drag-active {
    @apply border-primary bg-primary/5;
}

.file-drag-reject {
    @apply border-error bg-error/5;
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 进度条渐变 */
.progress-primary::-webkit-progress-value {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-primary::-moz-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 音符可视化 */
.note-visualization {
    display: flex;
    align-items: end;
    height: 60px;
    gap: 2px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow-x: auto;
}

.note-bar {
    min-width: 3px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 2px;
    transition: height 0.3s ease;
}

/* 深色主题适配 */
[data-theme="dark"] .audio-visualizer {
    background: linear-gradient(45deg, #4c1d95 0%, #581c87 100%);
}

[data-theme="dark"] .note-visualization {
    background: rgba(0, 0, 0, 0.2);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}