/* 移动对话框样式 */
.move-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.move-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 680px;
    height: 520px;
    min-width: 420px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    position: absolute;
    overflow: hidden;
}

/* 拖拽调整大小 - 四个角和四条边 */
.move-dialog-resize {
    position: absolute;
    z-index: 1;
}
.move-dialog-resize-n  { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.move-dialog-resize-s  { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.move-dialog-resize-e  { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.move-dialog-resize-w  { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.move-dialog-resize-ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: ne-resize; }
.move-dialog-resize-nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nw-resize; }
.move-dialog-resize-se { bottom: -4px; right: -4px; width: 12px; height: 12px; cursor: se-resize; }
.move-dialog-resize-sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: sw-resize; }

.move-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
}

.move-dialog-header:active {
    cursor: grabbing;
}

.move-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.move-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.move-close-btn:hover {
    background: #F1F5F9;
    color: var(--text-primary);
}

.move-close-btn svg {
    width: 18px;
    height: 18px;
}

.move-dialog-body {
    padding: 16px 24px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 选中文件信息 */
.move-items-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.move-items-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.move-items-count {
    font-weight: 600;
    color: var(--text-primary);
}

/* 面包屑导航 */
.move-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.move-breadcrumb::-webkit-scrollbar {
    height: 4px;
}

.move-breadcrumb::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 2px;
}

.move-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.move-breadcrumb-item:hover {
    background: #E2E8F0;
}

.move-breadcrumb-item.current {
    color: var(--text-primary);
    font-weight: 600;
    cursor: default;
}

.move-breadcrumb-item.current:hover {
    background: transparent;
}

.move-breadcrumb-separator {
    color: #94A3B8;
    font-size: 12px;
    flex-shrink: 0;
}

/* 文件夹列表 */
.move-folder-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    min-height: 120px;
}

.move-folder-list::-webkit-scrollbar {
    width: 6px;
}

.move-folder-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.move-folder-list::-webkit-scrollbar-track {
    background: transparent;
}

/* 加载状态 */
.move-folder-list-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
    gap: 8px;
}

.move-folder-list-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.move-folder-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    gap: 8px;
}

.move-folder-list-empty svg {
    width: 32px;
    height: 32px;
    color: #CBD5E1;
}

.move-folder-list-empty span {
    font-size: 13px;
}

/* 文件夹项 */
.move-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid #F1F5F9;
}

.move-folder-item:last-child {
    border-bottom: none;
}

.move-folder-item:hover {
    background: #F8FAFC;
}

/* 被移动项的禁用状态 */
.move-folder-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F8FAFC;
}

.move-folder-item.disabled:hover {
    background: #F8FAFC;
}

.move-folder-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    flex-shrink: 0;
}

.move-folder-item.selected {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.move-folder-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.move-folder-item-icon svg {
    width: 24px;
    height: 24px;
}

.move-folder-item-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.move-folder-item-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #94A3B8;
    transition: all 0.15s;
    flex-shrink: 0;
}

.move-folder-item-enter:hover {
    background: #E2E8F0;
    color: var(--primary-color);
}

.move-folder-item-enter svg {
    width: 16px;
    height: 16px;
}

/* 返回上级按钮 */
.move-folder-item-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid #E2E8F0;
    color: var(--text-secondary);
    font-size: 13px;
}

.move-folder-item-back:hover {
    background: #F8FAFC;
    color: var(--text-primary);
}

.move-folder-item-back svg {
    width: 16px;
    height: 16px;
}

/* 新建文件夹按钮 */
.move-new-folder-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px dashed #CBD5E1;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.15s;
    flex-shrink: 0;
}

.move-new-folder-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #F0F7FF;
}

.move-new-folder-btn svg {
    width: 14px;
    height: 14px;
}

/* 底部 */
.move-dialog-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E2E8F0;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.move-target-info {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.move-target-info strong {
    color: var(--text-primary);
}

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

.move-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.move-btn svg {
    width: 18px;
    height: 18px;
}

.move-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.move-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.move-btn-primary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.move-btn-secondary {
    background: #F1F5F9;
    color: var(--text-secondary);
}

.move-btn-secondary:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

/* 响应式 */
@media (max-width: 640px) {
    .move-dialog {
        width: 95%;
        margin: 20px;
    }

    .move-dialog-footer {
        flex-direction: column;
    }

    .move-dialog-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .move-btn {
        justify-content: center;
    }

    .move-target-info {
        max-width: 100%;
    }
}
